mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
Fix pop may call multiple times
This commit is contained in:
@@ -115,6 +115,7 @@ class _NewDownloadTaskPage extends State<NewDownloadTaskPage> {
|
||||
WidgetsBinding.instance!.addPostFrameCallback((_) {
|
||||
context.canPop() ? context.pop() : context.go("/task_manager");
|
||||
});
|
||||
_ok = false;
|
||||
}
|
||||
if (!_fetched) fetchDefaultCfg();
|
||||
final i18n = AppLocalizations.of(context)!;
|
||||
|
||||
@@ -99,6 +99,7 @@ class _NewExportZipTaskPage extends State<NewExportZipTaskPage> {
|
||||
WidgetsBinding.instance!.addPostFrameCallback((_) {
|
||||
context.canPop() ? context.pop() : context.go("/task_manager");
|
||||
});
|
||||
_ok = false;
|
||||
}
|
||||
if (!_fetched) fetchDefaultCfg();
|
||||
final i18n = AppLocalizations.of(context)!;
|
||||
|
||||
@@ -87,6 +87,7 @@ class _NewUserPage extends State<NewUserPage> {
|
||||
SchedulerBinding.instance.addPostFrameCallback((_) {
|
||||
context.canPop() ? context.pop() : context.go("/users");
|
||||
});
|
||||
_newUserId = null;
|
||||
return Container();
|
||||
}
|
||||
final i18n = AppLocalizations.of(context)!;
|
||||
|
||||
Reference in New Issue
Block a user