MyStackView tab after a restore backup

This commit is contained in:
ryleedavis 2022-11-28 13:06:02 -07:00
parent 66ff5a437d
commit 6bbabcd729

View file

@ -25,6 +25,9 @@ import 'package:stackwallet/widgets/icon_widgets/addressbook_icon.dart';
import 'package:stackwallet/widgets/loading_indicator.dart';
import 'package:stackwallet/widgets/rounded_container.dart';
import '../../../../../pages_desktop_specific/home/desktop_home_view.dart';
import '../../../../../pages_desktop_specific/home/desktop_menu.dart';
import '../../../../../providers/desktop/current_desktop_menu_item.dart';
import '../../../../../widgets/desktop/primary_button.dart';
class StackRestoreProgressView extends ConsumerStatefulWidget {
@ -685,7 +688,19 @@ class _StackRestoreProgressViewState
enabled: true,
label: "Done",
onPressed: () async {
Navigator.of(context).pop();
DesktopMenuItemId keyID =
DesktopMenuItemId.myStack;
ref
.read(currentDesktopMenuItemProvider
.state)
.state = keyID;
Navigator.of(context, rootNavigator: true)
.popUntil(
ModalRoute.withName(
DesktopHomeView.routeName),
);
},
)
: SecondaryButton(