about summary refs log tree commit diff
path: root/src/ui
diff options
context:
space:
mode:
authorGabriel Brand <gabr.brand@gmail.com>2024-05-14 13:19:33 +0200
committerVika <vika@fireburn.ru>2025-01-02 02:41:43 +0300
commit8478475d9353aa895c216005cd1b731d8e657d53 (patch)
treeead557c749950d343602e8c71619ec0442eb1ff9 /src/ui
parentfbf38c69c68b92a73d1f833f32957a074a5a8cb5 (diff)
downloadFurtherance-8478475d9353aa895c216005cd1b731d8e657d53.tar.zst
CSV Export Dialog: Move export button below preferences
- Remove AdwClamp
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/window.rs19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/ui/window.rs b/src/ui/window.rs
index 9b49ed6..bf23729 100644
--- a/src/ui/window.rs
+++ b/src/ui/window.rs
@@ -911,20 +911,17 @@ impl FurtheranceWindow {
     pub fn open_csv_export_dialog(&self) {
         let builder = gtk::Builder::from_resource("/com/lakoliu/Furtherance/gtk/csv_export_dialog.ui");
         let dialog = builder.object::<adw::Dialog>("csv_export_dialog").unwrap();
-        let tasksort_row = builder
-            .object::<adw::ComboRow>("tasksort_row")
-            .unwrap();
-        let sortorder_row = builder
-            .object::<adw::ComboRow>("sortorder_row")
+        let selected_file_label = builder
+            .object::<gtk::Label>("selected_file_label")
             .unwrap();
         let filechooser_button = builder
             .object::<gtk::Button>("filechooser_button")
             .unwrap();
-        let selected_file_label = builder
-            .object::<gtk::Label>("selected_file_label")
+        let tasksort_row = builder
+            .object::<adw::ComboRow>("tasksort_row")
             .unwrap();
-        let cancel_button = builder
-            .object::<gtk::Button>("cancel_button")
+        let sortorder_row = builder
+            .object::<adw::ComboRow>("sortorder_row")
             .unwrap();
         let export_button = builder
             .object::<gtk::Button>("export_button")
@@ -965,10 +962,6 @@ impl FurtheranceWindow {
             }),
         );
 
-        cancel_button.connect_clicked(clone!(@weak dialog => move |_| {
-            dialog.close();
-        }));
-
         export_button.connect_clicked(clone!(@weak self as window, @weak dialog, @weak filechooser, @weak tasksort_row, @weak sortorder_row => move |_| {
             let sort = TaskSort::try_from(tasksort_row.selected()).unwrap_or_default();
             let order = SortOrder::try_from(sortorder_row.selected()).unwrap_or_default();