Commit 350127aa authored by Clinton Rogers's avatar Clinton Rogers

This fixes 3124; we now use the GConf system to remember whether the user had...

This fixes 3124; we now use the GConf system to remember whether the user had the find bar hidden or shown, and on start up, we set it to this.
parent 19c49b0a
......@@ -500,6 +500,14 @@ public class Config {
return set_int("/apps/shotwell/preferences/ui/photo_rating_filter", filter);
}
public bool set_search_bar_hidden(bool should_be_hidden) {
return set_bool("/apps/shotwell/preferences/ui/search_hidden", should_be_hidden);
}
public bool get_search_bar_hidden() {
return get_bool("/apps/shotwell/preferences/ui/search_hidden", false);
}
public string? get_search_text() {
return get_string("/apps/shotwell/preferences/ui/search_filter", null);
}
......
......@@ -152,7 +152,8 @@ public class LibraryWindow : AppWindow {
private SidebarMarker cameras_marker = null;
private SidebarMarker tags_marker = null;
private bool is_search_toolbar_visible = false;
private bool is_search_toolbar_visible = Config.get_instance().get_search_bar_hidden();
private SearchFilterToolbar search_toolbar = new SearchFilterToolbar();
private Gtk.VBox top_section = new Gtk.VBox(false, 0);
......@@ -791,6 +792,9 @@ public class LibraryWindow : AppWindow {
// if dismissing the toolbar, reset the filter
if (!display)
search_toolbar.reset();
// Ticket #3222 - remember search bar status between sessions.
Config.get_instance().set_search_bar_hidden(is_search_toolbar_visible);
}
private void show_extended_properties() {
......
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