mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-27 20:55:51 +00:00
SWB tweaks and desktop specific ui layout fixes
This commit is contained in:
parent
1f6c0e3f31
commit
3bbed4ec63
3 changed files with 13 additions and 7 deletions
|
@ -467,8 +467,12 @@ abstract class SWB {
|
|||
return false;
|
||||
}
|
||||
|
||||
// if mnemonic verified does not get set the wallet will be deleted on app restart
|
||||
await wallet.info.setMnemonicVerified(isar: MainDB.instance.isar);
|
||||
try {
|
||||
// if mnemonic verified does not get set the wallet will be deleted on app restart
|
||||
await wallet.info.setMnemonicVerified(isar: MainDB.instance.isar);
|
||||
} catch (_) {
|
||||
// Do not interrupt/cancel/fail restore from swb if setMnemonicVerified was already set
|
||||
}
|
||||
|
||||
if (_shouldCancelRestore) {
|
||||
return false;
|
||||
|
|
|
@ -505,7 +505,7 @@ class _RestoreFromFileViewState extends ConsumerState<RestoreFromFileView> {
|
|||
await showDialog<dynamic>(
|
||||
context: context,
|
||||
useSafeArea: false,
|
||||
barrierDismissible: true,
|
||||
barrierDismissible: false,
|
||||
builder: (context) {
|
||||
return DesktopDialog(
|
||||
maxHeight: 750,
|
||||
|
|
|
@ -144,7 +144,7 @@ class _ForgottenPassphraseRestoreFromSWBState
|
|||
builder: (context) {
|
||||
return DesktopDialog(
|
||||
maxWidth: 580,
|
||||
maxHeight: double.infinity,
|
||||
maxHeight: MediaQuery.of(context).size.height - 64,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(32),
|
||||
child: Column(
|
||||
|
@ -162,9 +162,11 @@ class _ForgottenPassphraseRestoreFromSWBState
|
|||
const SizedBox(
|
||||
height: 44,
|
||||
),
|
||||
StackRestoreProgressView(
|
||||
jsonString: jsonString,
|
||||
shouldPushToHome: true,
|
||||
Flexible(
|
||||
child: StackRestoreProgressView(
|
||||
jsonString: jsonString,
|
||||
shouldPushToHome: true,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue