Do not allow the backspace shortcut to uninstall Warehouse

This commit is contained in:
heliguy4599
2024-10-14 19:31:39 -04:00
parent 22986ca474
commit ad6106f7ca

View File

@@ -250,7 +250,7 @@ class PackagesPage(Adw.BreakpointBin):
self.packages_toast_overlay.add_toast(ErrorToast(_("Could not copy {}").format(feedback), str(e)).toast)
def selection_uninstall(self, *args):
if len(self.selected_rows) < 1:
if len(self.selected_rows) < 1 or not self.uninstall_button.get_active():
return
def on_response(should_trash):