Show all non halted vm's as running

This commit is contained in:
donoban 2021-02-17 10:55:20 +01:00
parent 60dbeabfb4
commit 6276373fff
No known key found for this signature in database
GPG Key ID: 141310D8E3ED08A5

View File

@ -668,7 +668,7 @@ class QubesProxyModel(QSortFilterProxyModel):
vm = self.sourceModel().data(index, Qt.UserRole) vm = self.sourceModel().data(index, Qt.UserRole)
if self.window.show_running.isChecked() and \ if self.window.show_running.isChecked() and \
vm.state['power'] == 'Running': vm.state['power'] != 'Halted':
return super().filterAcceptsRow(sourceRow, sourceParent) return super().filterAcceptsRow(sourceRow, sourceParent)
if self.window.show_halted.isChecked() and \ if self.window.show_halted.isChecked() and \
vm.state['power'] == 'Halted': vm.state['power'] == 'Halted':