Skip to content

Commit

Permalink
Added action_open_console setEnabled
Browse files Browse the repository at this point in the history
  • Loading branch information
donob4n committed Apr 5, 2020
1 parent de14994 commit c708b42
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions qubesmanager/qube_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -916,16 +916,20 @@ def table_selection_changed(self):
self.action_pausevm.setEnabled(False)
self.action_set_keyboard_layout.setEnabled(False)
self.action_restartvm.setEnabled(False)
self.action_open_console.setEnabled(False)
elif vm.state.power == "Suspend":
self.action_removevm.setEnabled(False)
self.action_pausevm.setEnabled(False)
self.action_open_console.setEnabled(False)
elif vm.state.power == "Halted":
self.action_pausevm.setEnabled(False)
self.action_shutdownvm.setEnabled(False)
self.action_restartvm.setEnabled(False)
self.action_killvm.setEnabled(False)
self.action_open_console.setEnabled(False)

if vm.klass == 'AdminVM':
self.action_open_console.setEnabled(False)
self.action_settings.setEnabled(False)
self.action_resumevm.setEnabled(False)
self.action_removevm.setEnabled(False)
Expand Down

0 comments on commit c708b42

Please sign in to comment.