From 61d7a6dc05f39055cbfd473c2a5cd638194aa132 Mon Sep 17 00:00:00 2001 From: donoban Date: Wed, 22 Jul 2020 12:17:10 +0200 Subject: [PATCH] fix set_keyboar_layout test fail --- qubesmanager/qube_manager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qubesmanager/qube_manager.py b/qubesmanager/qube_manager.py index 28559484..7888f90c 100644 --- a/qubesmanager/qube_manager.py +++ b/qubesmanager/qube_manager.py @@ -929,10 +929,12 @@ def table_selection_changed(self): self.action_restartvm.setEnabled(False) self.action_open_console.setEnabled(False) elif vm.state['power'] == 'Suspend': + self.action_set_keyboard_layout.setEnabled(False) self.action_removevm.setEnabled(False) self.action_pausevm.setEnabled(False) self.action_open_console.setEnabled(False) elif vm.state['power'] == 'Halted': + self.action_set_keyboard_layout.setEnabled(False) self.action_pausevm.setEnabled(False) self.action_shutdownvm.setEnabled(False) self.action_restartvm.setEnabled(False)