mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
minor fixes [skip ci]
This commit is contained in:
@@ -154,8 +154,12 @@ class BackupPage extends BasePage {
|
||||
leftButtonText: S.of(context).share,
|
||||
actionRightButton: () async {
|
||||
await backupViewModelBase.saveToDownload(backup.name, backup.file);
|
||||
Navigator.of(dialogContext).pop();
|
||||
await showBar<void>(context, S.of(context).file_saved);
|
||||
if (dialogContext.mounted && Navigator.canPop(dialogContext)) {
|
||||
Navigator.of(dialogContext).pop();
|
||||
}
|
||||
if (context.mounted && Navigator.canPop(context)) {
|
||||
await showBar<void>(context, S.of(context).file_saved);
|
||||
}
|
||||
},
|
||||
actionLeftButton: () async {
|
||||
Navigator.of(dialogContext).pop();
|
||||
|
||||
@@ -161,7 +161,7 @@ abstract class LedgerViewModelBase extends HardwareWalletViewModel with Store {
|
||||
allowChangeWallet: true,
|
||||
isReconnect: true,
|
||||
onConnectDevice: (context, ledgerVM) async {
|
||||
if (context.mounted) {
|
||||
if (context.mounted && Navigator.of(context).canPop()) {
|
||||
Navigator.of(context).pop();
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user