diff options
author | Ricky Kresslein <rk@lakoliu.com> | 2022-06-08 14:52:17 +0300 |
---|---|---|
committer | Ricky Kresslein <rk@lakoliu.com> | 2022-06-08 14:52:17 +0300 |
commit | d7099a4d98744481e8f7ecce4e9233e66af1fd44 (patch) | |
tree | 75edd112e2e92ae68c33f4d110789ec72255ff80 /src/ui/task_details.rs | |
parent | 64bfc787cca62621963d3409befcf85f9b2c8dd9 (diff) | |
download | Furtherance-d7099a4d98744481e8f7ecce4e9233e66af1fd44.tar.zst |
Fix formatting
Diffstat (limited to 'src/ui/task_details.rs')
-rwxr-xr-x | src/ui/task_details.rs | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/ui/task_details.rs b/src/ui/task_details.rs index 37eced3..b8771ac 100755 --- a/src/ui/task_details.rs +++ b/src/ui/task_details.rs @@ -15,17 +15,17 @@ // along with this program. If not, see <https://www.gnu.org/licenses/>. use adw::subclass::prelude::*; +use chrono::{offset::TimeZone, DateTime, Local, NaiveDateTime, ParseError}; use gettextrs::*; use glib::clone; use gtk::subclass::prelude::*; use gtk::{glib, prelude::*, CompositeTemplate}; -use chrono::{DateTime, NaiveDateTime, Local, ParseError, offset::TimeZone}; use itertools::Itertools; -use crate::FurtheranceApplication; -use crate::ui::FurtheranceWindow; use crate::database; use crate::settings_manager; +use crate::ui::FurtheranceWindow; +use crate::FurtheranceApplication; mod imp { use super::*; @@ -75,7 +75,6 @@ mod imp { } impl ObjectImpl for FurTaskDetails { - fn constructed(&self, obj: &Self::Type) { obj.setup_signals(); obj.setup_delete_all(); @@ -413,7 +412,7 @@ impl FurTaskDetails { dialog.show(); })); - stop.connect_clicked(move |_|{ + stop.connect_clicked(move |_| { start.emit_clicked(); }); } @@ -438,7 +437,8 @@ impl FurTaskDetails { let start_time_str = start_time.format("%x").to_string(); if imp.this_day.borrow().to_string() != start_time_str || imp.task_name_label.text() != task.task_name - || imp.orig_tags.borrow().to_string() != task.tags { + || imp.orig_tags.borrow().to_string() != task.tags + { false } else { true @@ -590,13 +590,10 @@ impl FurTaskDetails { } })); - } fn delete_all(&self) { let imp = imp::FurTaskDetails::from_instance(self); let _ = database::delete_by_ids(imp.all_task_ids.borrow().to_vec()); } - } - |