Commit 6c2eea96 authored by Jens Georg's avatar Jens Georg

Fix action state when switching back in library

https://bugzilla.gnome.org/show_bug.cgi?id=776527Signed-off-by: Jens Georg's avatarJens Georg <mail@jensge.org>
parent f98a958b
......@@ -277,6 +277,10 @@ public abstract class Page : Gtk.ScrolledWindow {
in_view = true;
add_ui();
add_actions();
int selected_count = get_view().get_selected_count();
int count = get_view().get_count();
init_actions(selected_count, count);
update_actions(selected_count, count);
update_modifiers();
}
......@@ -543,6 +547,9 @@ public abstract class Page : Gtk.ScrolledWindow {
private void on_update_actions_on_idle() {
if (is_destroyed)
return;
if (!this.in_view)
return;
update_actions(get_view().get_selected_count(), get_view().get_count());
}
......
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