From 0cc4db6d1ab74991a6914c079f2ea313fd235528 Mon Sep 17 00:00:00 2001 From: Ricky Kresslein Date: Thu, 31 Mar 2022 09:54:25 +0200 Subject: Remove search from Preferences --- src/ui/preferences_window.rs | 2 ++ src/ui/window.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/ui/preferences_window.rs b/src/ui/preferences_window.rs index f871e31..36e83dc 100755 --- a/src/ui/preferences_window.rs +++ b/src/ui/preferences_window.rs @@ -105,6 +105,8 @@ impl FurPreferencesWindow { } fn setup_widgets(&self) { + self.set_search_enabled(false); + let imp = imp::FurPreferencesWindow::from_instance(self); let manager = adw::StyleManager::default(); diff --git a/src/ui/window.rs b/src/ui/window.rs index 36c20c1..f49c8b2 100755 --- a/src/ui/window.rs +++ b/src/ui/window.rs @@ -135,7 +135,7 @@ impl FurtheranceWindow { if *imp.subtract_idle.lock().unwrap() { let idle_start = DateTime::parse_from_rfc3339(&imp.idle_start_time.lock().unwrap()).unwrap(); stop_time = idle_start.with_timezone(&Local); - *imp.subtract_idle.lock().unwrap() = false + *imp.subtract_idle.lock().unwrap() = false; } let _ = database::db_write(&imp.task_input.text().trim(), start_time, stop_time); -- cgit 1.4.1