From 32227348d37be4ece483516c6dd136bbb2c8f06d Mon Sep 17 00:00:00 2001 From: heliguy Date: Thu, 31 Aug 2023 23:24:42 -0400 Subject: [PATCH] Update batch and batch copy Batch select all base structure added. Batch copy button changed label to "Copy App ID" --- src/window.blp | 2 +- src/window.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/window.blp b/src/window.blp index a6ebc25..a23b1c2 100644 --- a/src/window.blp +++ b/src/window.blp @@ -86,7 +86,7 @@ template FlattoolGuiWindow : Adw.ApplicationWindow { [end] Button batch_copy_button { icon-name: "edit-copy-symbolic"; - label: _("Copy"); + label: _("Copy App ID"); tooltip-text: _("Copy Selected Flatpaks' IDs Seperated by a New Line"); } } diff --git a/src/window.py b/src/window.py index af2fddf..0a9ef55 100644 --- a/src/window.py +++ b/src/window.py @@ -598,6 +598,9 @@ class FlattoolGuiWindow(Adw.ApplicationWindow): dialog.set_response_appearance("continue", Adw.ResponseAppearance.DESTRUCTIVE) dialog.connect("response", self.on_batch_clean_response, dialog.choose_finish) Gtk.Window.present(dialog) + + def batch_select_all_handler(self, widget): + print("all") def flatpak_row_select_handler(self, tickbox, index): if tickbox.get_active(): @@ -627,4 +630,5 @@ class FlattoolGuiWindow(Adw.ApplicationWindow): self.batch_clean_button.add_css_class("destructive-action") self.batch_uninstall_button.add_css_class("destructive-action") + self.batch_select_all_button.connect("clicked", self.batch_select_all_handler) self.batch_actions_enable(False) \ No newline at end of file