From f5be125e850c813e83a9807a4a51f0978757352a Mon Sep 17 00:00:00 2001 From: Ali Mirjamali Date: Sun, 7 Jul 2024 05:52:49 +0330 Subject: [PATCH] Enabling double-click for VM Settings -> Available Apps <> Menu Apps fixes: https://github.com/QubesOS/qubes-issues/issues/8836 --- qubesmanager/multiselectwidget.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qubesmanager/multiselectwidget.py b/qubesmanager/multiselectwidget.py index 534d8a9f..53455514 100644 --- a/qubesmanager/multiselectwidget.py +++ b/qubesmanager/multiselectwidget.py @@ -20,6 +20,8 @@ def __init__(self, parent=None): QtWidgets.QAbstractItemView.ExtendedSelection) self.selected_list.setSelectionMode( QtWidgets.QAbstractItemView.ExtendedSelection) + self.available_list.itemDoubleClicked.connect(self.add_selected) + self.selected_list.itemDoubleClicked.connect(self.remove_selected) def switch_selected(self, src, dst): selected = src.selectedItems() @@ -39,9 +41,11 @@ def switch_selected(self, src, dst): def add_selected(self): self.switch_selected(self.available_list, self.selected_list) + self.available_list.selectionModel().clear() def remove_selected(self): self.switch_selected(self.selected_list, self.available_list) + self.selected_list.selectionModel().clear() def move_all(self, src, dst): items = []