SWB tweaks and desktop specific ui layout fixes

This commit is contained in:
julian 2024-01-17 11:46:18 -06:00
parent 1f6c0e3f31
commit 3bbed4ec63
3 changed files with 13 additions and 7 deletions

View file

@ -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;

View file

@ -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,

View file

@ -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,
),
),
],
),