From 17c269b9d51850e09087653f24e02825fd2079f3 Mon Sep 17 00:00:00 2001 From: Ricky Kresslein Date: Sun, 15 Oct 2023 11:01:39 +0200 Subject: Add preference to toggle autocomplete --- src/ui/preferences_window.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/ui/preferences_window.rs') 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, #[template_child] - pub task_group: TemplateChild, + pub task_list_group: TemplateChild, #[template_child] pub limit_tasks_expander: TemplateChild, #[template_child] @@ -60,6 +60,11 @@ mod imp { #[template_child] pub show_tags_switch: TemplateChild, + #[template_child] + pub task_input_group: TemplateChild, + #[template_child] + pub autocomplete_switch: TemplateChild, + #[template_child] pub timer_group: TemplateChild, #[template_child] @@ -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"); -- cgit 1.4.1