[fractal] Reload active room on rooms update
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal] Reload active room on rooms update
- Date: Sat, 13 Jul 2019 06:02:14 +0000 (UTC)
commit 76d93a20c09cd759994f81ed28098ef7171e892b
Author: Daniel GarcĂa Moreno <dani danigm net>
Date: Wed Jun 26 10:01:02 2019 +0200
Reload active room on rooms update
We need to select again the active room when we clear the room list and
we've one active room so we can reload the list of messages.
Fix https://gitlab.gnome.org/GNOME/fractal/issues/404
fractal-gtk/src/appop/room.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/fractal-gtk/src/appop/room.rs b/fractal-gtk/src/appop/room.rs
index d0cd2ac1..65435fde 100644
--- a/fractal-gtk/src/appop/room.rs
+++ b/fractal-gtk/src/appop/room.rs
@@ -121,7 +121,7 @@ impl AppOp {
});
// Select active room in the sidebar
if let Some(ref active_room) = self.active_room {
- self.roomlist.select(active_room);
+ self.set_active_room_by_id(active_room.clone());
}
self.cache_rooms();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]