Explorar el Código

Dot allow to run command in paused VM

Marek Marczykowski hace 11 años
padre
commit
ab5fca6e19
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      qubesmanager/main.py

+ 1 - 1
qubesmanager/main.py

@@ -1124,7 +1124,7 @@ class VmManagerWindow(Ui_VmManagerWindow, QMainWindow):
             self.action_updatevm.setEnabled(vm.is_updateable() or vm.qid == 0)
             self.action_toggle_audio_input.setEnabled(vm.last_running and vm.qid != 0 and \
                     session_bus.name_has_owner('org.QubesOS.Audio.%s' % vm.name))
-            self.action_run_command_in_vm.setEnabled(vm.qid != 0)
+            self.action_run_command_in_vm.setEnabled(not vm.last_power_state == "Paused" and vm.qid != 0)
             self.action_set_keyboard_layout.setEnabled(vm.qid != 0 and vm.last_running)
         else:
             self.action_settings.setEnabled(False)