about summary refs log tree commit diff
path: root/src/ui/preferences_window.rs
diff options
context:
space:
mode:
authorRicky Kresslein <ricky@unobserved.io>2023-10-15 11:18:48 +0200
committerRicky Kresslein <ricky@unobserved.io>2023-10-15 11:18:48 +0200
commita7259d8cabadf9f35c29368837d90cdaa8b6bdd1 (patch)
treec78e9cdcd69b1e23cfc12e500d1b6050b6a61d84 /src/ui/preferences_window.rs
parent17c269b9d51850e09087653f24e02825fd2079f3 (diff)
downloadFurtherance-a7259d8cabadf9f35c29368837d90cdaa8b6bdd1.tar.zst
Fix autocomplete preference bugs
Diffstat (limited to 'src/ui/preferences_window.rs')
-rw-r--r--src/ui/preferences_window.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/preferences_window.rs b/src/ui/preferences_window.rs
index 756e3ad..1b827fe 100644
--- a/src/ui/preferences_window.rs
+++ b/src/ui/preferences_window.rs
@@ -229,6 +229,11 @@ impl FurPreferencesWindow {
             window.reset_history_box();
         });
 
+        imp.autocomplete_switch.connect_active_notify(move |switch| {
+            let window = FurtheranceWindow::default();
+            window.reset_autocomplete();
+        });
+
         imp.pomodoro_expander
             .connect_enable_expansion_notify(move |_| {
                 let window = FurtheranceWindow::default();