fix: keystore password dialog showing up before importing (#1068)

This commit is contained in:
aAbed 2023-08-03 07:21:39 +05:45 committed by GitHub
parent 08f6724060
commit 0d716513d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,10 +73,12 @@ class SExportSection extends StatelessWidget {
), ),
), ),
subtitle: I18nText('settingsView.importKeystoreHint'), subtitle: I18nText('settingsView.importKeystoreHint'),
onTap: () { onTap: () async{
_settingsViewModel.importKeystore(); await _settingsViewModel.importKeystore();
final sManageKeystorePassword = SManageKeystorePassword(); final sManageKeystorePassword = SManageKeystorePassword();
sManageKeystorePassword.showKeystoreDialog(context); if(context.mounted){
sManageKeystorePassword.showKeystoreDialog(context);
}
}, },
), ),
ListTile( ListTile(