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:01:39 +0200
committerRicky Kresslein <ricky@unobserved.io>2023-10-15 11:01:39 +0200
commit17c269b9d51850e09087653f24e02825fd2079f3 (patch)
treea8ddf58d173ca0b8c945957ae9ad1701f4e125ae /src/ui/preferences_window.rs
parent5a21b2528e30706cba939fd38102cafa5100c783 (diff)
downloadFurtherance-17c269b9d51850e09087653f24e02825fd2079f3.tar.zst
Add preference to toggle autocomplete
Diffstat (limited to 'src/ui/preferences_window.rs')
-rw-r--r--src/ui/preferences_window.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ui/preferences_window.rs b/src/ui/preferences_window.rs
index 301250b..756e3ad 100644
--- a/src/ui/preferences_window.rs
+++ b/src/ui/preferences_window.rs
@@ -46,7 +46,7 @@ mod imp {
         pub notify_of_idle_spin: TemplateChild<gtk::SpinButton>,
 
         #[template_child]
-        pub task_group: TemplateChild<adw::PreferencesGroup>,
+        pub task_list_group: TemplateChild<adw::PreferencesGroup>,
         #[template_child]
         pub limit_tasks_expander: TemplateChild<adw::ExpanderRow>,
         #[template_child]
@@ -61,6 +61,11 @@ mod imp {
         pub show_tags_switch: TemplateChild<gtk::Switch>,
 
         #[template_child]
+        pub task_input_group: TemplateChild<adw::PreferencesGroup>,
+        #[template_child]
+        pub autocomplete_switch: TemplateChild<gtk::Switch>,
+
+        #[template_child]
         pub timer_group: TemplateChild<adw::PreferencesGroup>,
         #[template_child]
         pub pomodoro_expander: TemplateChild<adw::ExpanderRow>,
@@ -179,6 +184,8 @@ impl FurPreferencesWindow {
 
         settings_manager::bind_property("show-tags", &*imp.show_tags_switch, "active");
 
+        settings_manager::bind_property("autocomplete", &*imp.autocomplete_switch, "active");
+
         settings_manager::bind_property("pomodoro", &*imp.pomodoro_expander, "enable-expansion");
 
         settings_manager::bind_property("pomodoro-time", &*imp.pomodoro_spin, "value");