Commit 35b3d1ae authored by Mohammed Sadiq's avatar Mohammed Sadiq
Browse files

window: Don't change selection when fold mode changes

When the window style changes from folded mode to non-folded mode,
the first chat list item is selected by default regardless of the
current state.

Instead of blindly selecting the first item, select the first item
only if none is selected when window changes to non-folded mode.
parent ca7da7ce
......@@ -434,6 +434,8 @@ notify_fold_cb (GObject *sender,
if (fold == HDY_FOLD_FOLDED) {
window_set_item (self, NULL);
hdy_leaflet_set_visible_child_name (HDY_LEAFLET (self->content_box), "sidebar");
} else if (self->selected_item) {
window_chat_changed_cb (self);
} else {
chatty_window_chat_list_select_first (self);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment