mirror of
https://github.com/morgan9e/warehouse
synced 2026-04-14 00:04:08 +09:00
Update batch and batch copy
Batch select all base structure added. Batch copy button changed label to "Copy App ID"
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
Reference in New Issue
Block a user