[fractal/fix-login-to-session-switch] Fix broken login to session page switching




commit 0460c7091a6beeea901ac6cfe84d303a1fd973d5
Author: Alejandro Domínguez <adomu net-c com>
Date:   Fri Jul 23 18:08:34 2021 +0200

    Fix broken login to session page switching

 src/window.rs | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/window.rs b/src/window.rs
index 8654fe0f..7485a1d9 100644
--- a/src/window.rs
+++ b/src/window.rs
@@ -66,9 +66,11 @@ mod imp {
             obj.load_window_size();
             obj.restore_sessions();
 
-            self.login.connect_new_session(
-                clone!(@weak obj => move |_login, session| obj.add_session(session)),
-            );
+            self.login
+                .connect_new_session(clone!(@weak obj => move |_login, session| {
+                    obj.add_session(session);
+                    obj.switch_to_sessions_page();
+                }));
 
             self.main_stack.connect_visible_child_notify(
                 clone!(@weak obj => move |_| obj.set_default_by_child()),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]