Procházet zdrojové kódy

close settings drawer on autoLogOut

ashilkn před 2 roky
rodič
revize
600bea7ef9
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      lib/ui/home_widget.dart

+ 1 - 0
lib/ui/home_widget.dart

@@ -201,6 +201,7 @@ class _HomeWidgetState extends State<HomeWidget> {
           ),
           ),
           onPressed: () async {
           onPressed: () async {
             Navigator.of(context, rootNavigator: true).pop('dialog');
             Navigator.of(context, rootNavigator: true).pop('dialog');
+            Navigator.of(context).popUntil((route) => route.isFirst);
             final dialog = createProgressDialog(context, "Logging out...");
             final dialog = createProgressDialog(context, "Logging out...");
             await dialog.show();
             await dialog.show();
             await Configuration.instance.logout();
             await Configuration.instance.logout();