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_row.rs | |
parent | 64bfc787cca62621963d3409befcf85f9b2c8dd9 (diff) | |
download | Furtherance-d7099a4d98744481e8f7ecce4e9233e66af1fd44.tar.zst |
Fix formatting
Diffstat (limited to 'src/ui/task_row.rs')
-rwxr-xr-x | src/ui/task_row.rs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/ui/task_row.rs b/src/ui/task_row.rs index cccc827..810d12e 100755 --- a/src/ui/task_row.rs +++ b/src/ui/task_row.rs @@ -14,17 +14,16 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see <https://www.gnu.org/licenses/>. -use gtk::subclass::prelude::*; -use gtk::{glib, gio, prelude::*, CompositeTemplate}; use chrono::DateTime; -use std::sync::Mutex; -use once_cell::sync::Lazy; use glib::clone; +use gtk::subclass::prelude::*; +use gtk::{gio, glib, prelude::*, CompositeTemplate}; +use once_cell::sync::Lazy; +use std::sync::Mutex; use crate::database::Task; -use crate::ui::{FurTaskDetails, FurtheranceWindow}; use crate::settings_manager; - +use crate::ui::{FurTaskDetails, FurtheranceWindow}; mod imp { use super::*; @@ -110,7 +109,8 @@ impl FurTaskRow { } // Display task's name - imp.task_name_label.set_text(&imp.tasks.lock().unwrap()[0].task_name); + imp.task_name_label + .set_text(&imp.tasks.lock().unwrap()[0].task_name); // Display task's tags if task_list[0].tags.trim().is_empty() || !settings_manager::get_bool("show-tags") { @@ -131,10 +131,11 @@ impl FurTaskRow { self.add_controller(&gesture); - imp.restart_task_btn.connect_clicked(clone!(@strong task_list => move |_| { - let window = FurtheranceWindow::default(); - window.duplicate_task(task_list[0].clone()); - })); + imp.restart_task_btn + .connect_clicked(clone!(@strong task_list => move |_| { + let window = FurtheranceWindow::default(); + window.duplicate_task(task_list[0].clone()); + })); // Add up all durations for task of said name to create total_time for task in &task_list { @@ -169,4 +170,3 @@ impl FurTaskRow { *imp.total_time.borrow() } } - |