From 2b3527235e059cc9769813f57724b89f95b8d5cc Mon Sep 17 00:00:00 2001 From: takotori Date: Sun, 29 Oct 2023 14:10:29 +0100 Subject: [PATCH] refactor --- src/components/window/mod.rs | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/components/window/mod.rs b/src/components/window/mod.rs index 59eb0d1..be231ca 100644 --- a/src/components/window/mod.rs +++ b/src/components/window/mod.rs @@ -192,23 +192,23 @@ impl Window { fn setupPopoverButtons(&self) { let selfImp = self.imp(); selfImp.resetAboutButton.connect_clicked(clone!(@ weak self as window => move |_| { - let dialog = adw::AboutWindow::builder() - .application_name("ReSet") - // .application_icon("") - .developer_name("Xetibo") - .license_type(gtk::License::Gpl30) - .website("https://github.com/Xetibo/ReSet") - .issue_url("https://github.com/Xetibo/ReSet/issues") - .version("0.0.1") - .transient_for(&window) - .modal(true) - .copyright("© 2022-2023 Xetibo") - .developers(vec!["DashieTM".to_string(), "takatori".to_string()]) - .designers(vec!["DashieTM".to_string(), "takatori".to_string()]) - .build(); + let dialog = adw::AboutWindow::builder() + .application_name("ReSet") + // .application_icon("") + .developer_name("Xetibo") + .license_type(gtk::License::Gpl30) + .website("https://github.com/Xetibo/ReSet") + .issue_url("https://github.com/Xetibo/ReSet/issues") + .version("0.0.1") + .transient_for(&window) + .modal(true) + .copyright("© 2022-2023 Xetibo") + .developers(vec!["DashieTM".to_string(), "takatori".to_string()]) + .designers(vec!["DashieTM".to_string(), "takatori".to_string()]) + .build(); - dialog.present(); - })); + dialog.present(); + })); } }