fix: some bugs

This commit is contained in:
hiddify-com
2024-08-05 02:07:07 +02:00
parent 12290dc4e3
commit 39ae86a538
4 changed files with 20 additions and 39 deletions

View File

@@ -39,7 +39,7 @@ class AddProfileModal extends HookConsumerWidget {
if (next case AsyncData(value: final _?)) {
WidgetsBinding.instance.addPostFrameCallback(
(_) {
if (context.mounted) context.pop();
if (context.mounted && context.canPop()) context.pop();
},
);
}