about summary refs log tree commit diff
path: root/src/ui/tasks_group.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/tasks_group.rs')
-rwxr-xr-xsrc/ui/tasks_group.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/tasks_group.rs b/src/ui/tasks_group.rs
index bd55c36..f53b13f 100755
--- a/src/ui/tasks_group.rs
+++ b/src/ui/tasks_group.rs
@@ -18,9 +18,9 @@ use adw::subclass::prelude::*;
 use gtk::subclass::prelude::*;
 use gtk::{glib, prelude::*};
 
-use crate::ui::FurTaskRow;
 use crate::database;
 use crate::settings_manager;
+use crate::ui::FurTaskRow;
 
 mod imp {
     use super::*;
@@ -86,9 +86,10 @@ impl FurTasksGroup {
             let mut unique = true;
             for i in 0..tasks_by_name.len() {
                 if tasks_by_name[i][0].task_name == task.task_name
-                    && ( ( settings_manager::get_bool("show-tags")
-                        && tasks_by_name[i][0].tags == task.tags ) ||
-                            !settings_manager::get_bool("show-tags") ) {
+                    && ((settings_manager::get_bool("show-tags")
+                        && tasks_by_name[i][0].tags == task.tags)
+                        || !settings_manager::get_bool("show-tags"))
+                {
                     tasks_by_name[i].push(task.clone());
                     unique = false;
                 }
@@ -118,4 +119,3 @@ impl FurTasksGroup {
         *imp.day_total_time.borrow()
     }
 }
-