Skip to content

Commit 87eed85

Browse files
committed
fix(ui): desktop manual swb creation dialog navigation
1 parent 59a2eea commit 87eed85

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

lib/pages/settings_views/global_settings_view/stack_backup_views/create_backup_view.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ class _RestoreFromFileViewState extends ConsumerState<CreateBackupView> {
114114
subMessage: "This shouldn't take long",
115115
delay: const Duration(seconds: 1),
116116
onException: (e) => ex = e,
117+
rootNavigator: Util.isDesktop,
117118
);
118119

119120
if (mounted) {
@@ -154,7 +155,10 @@ class _RestoreFromFileViewState extends ConsumerState<CreateBackupView> {
154155
child: PrimaryButton(
155156
label: "Ok",
156157
buttonHeight: ButtonHeight.l,
157-
onPressed: Navigator.of(context).pop,
158+
onPressed: Navigator.of(
159+
context,
160+
rootNavigator: true,
161+
).pop,
158162
),
159163
),
160164
],

0 commit comments

Comments
 (0)