Commit 4ab396a5 authored by Petr Štětka's avatar Petr Štětka
Browse files

Fix search button activation

parent 7d194afa
......@@ -12,6 +12,7 @@ namespace Usage
private Gtk.StackSwitcher stack_switcher;
private Gtk.ToggleButton? performance_search_button;
private bool active_performance_search_btn = false;
private Gtk.Button? storage_back_button;
private Gtk.Button? storage_rescan_button;
private bool show_storage_back_btn = false;
......@@ -57,7 +58,9 @@ namespace Usage
performance_search_button = new Gtk.ToggleButton();
performance_search_button.set_image(new Gtk.Image.from_icon_name("system-search-symbolic", Gtk.IconSize.BUTTON));
performance_search_button.toggled.connect(() => {
active_performance_search_btn =;
((PerformanceView) (GLib.Application.get_default() as Application).get_window().get_views()[0]).set_search_mode(;
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