From becd776dc8d3c71c4dd13071c291e3f8aa226aba Mon Sep 17 00:00:00 2001 From: heliguy Date: Wed, 18 Oct 2023 05:43:59 -0400 Subject: [PATCH] Add Copy launch command row menu item --- src/window.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/window.py b/src/window.py index 969946a..279074f 100644 --- a/src/window.py +++ b/src/window.py @@ -335,6 +335,9 @@ class WarehouseWindow(Adw.ApplicationWindow): self.create_action(("copy-ref" + str(index)), lambda *_, ref=app_ref, toast=_("Copied ref"): self.copyItem(ref, toast)) copy_menu_model.append_item(Gio.MenuItem.new(_("Copy Ref"), f"win.copy-ref{index}")) + self.create_action(("copy-command" + str(index)), lambda *_, ref=app_ref, toast=_("Copied launch command"): self.copyItem(f"flatpak run {ref}", toast)) + copy_menu_model.append_item(Gio.MenuItem.new(_("Copy Launch Command"), f"win.copy-command{index}")) + row_menu_model.append_submenu(_("Copy"), copy_menu_model) if "runtime" not in self.host_flatpaks[index][12]: