Commit e4306134 authored by Clint Rogers's avatar Clint Rogers

Fixes #5028, puts in place a mechanism for pages with lengthy startup...

Fixes #5028,  puts in place a mechanism for pages with lengthy startup procedures to initialize their
UI separately from the long startup.
parent 635d6f39
......@@ -236,6 +236,9 @@ public abstract class Page : Gtk.ScrolledWindow {
update_modifiers();
}
public virtual void ready() {
}
public bool is_in_view() {
return in_view;
}
......
......@@ -933,7 +933,9 @@ public class ImportPage : CheckerboardPage {
set_display_titles(Config.Facade.get_instance().get_display_photo_titles());
base.switched_to();
}
public override void ready() {
try_refreshing_camera(false);
hide_imported_filter.refresh();
}
......
......@@ -1392,6 +1392,8 @@ public class LibraryWindow : AppWindow {
right_vbox.add(toolbar);
toolbar.show_all();
}
page.ready();
}
private void init_view_filter(CheckerboardPage page) {
......
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