[fractal/multi-account] Apply 1 suggestion(s) to 1 file(s)
- From: Alejandro Domínguez <aledomu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal/multi-account] Apply 1 suggestion(s) to 1 file(s)
- Date: Tue, 24 Aug 2021 11:31:46 +0000 (UTC)
commit 8c6719fc314e395061fd703f4d705c1151091f19
Author: Julian Sparber <julian sparber net>
Date: Tue Aug 24 11:31:45 2021 +0000
Apply 1 suggestion(s) to 1 file(s)
src/session/sidebar/sidebar.rs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/session/sidebar/sidebar.rs b/src/session/sidebar/sidebar.rs
index 9caae182..0504142b 100644
--- a/src/session/sidebar/sidebar.rs
+++ b/src/session/sidebar/sidebar.rs
@@ -163,7 +163,9 @@ mod imp {
.and_then(Result::ok)
.map(|item| match item {
AccountSwitcherItem::User(session_page) => {
- session_page.set_visible(true);
+ let widget = session_page.child();
+ let stack = widget.parent().unwrap().downcast::<gtk::Stack>().unwrap();
+ stack.set_visible_child(&widget);
}
AccountSwitcherItem::AddAccount => {
list_view.activate_action("app.new-login", None);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]