Enable seamless mode buttons for Windows template-based qubes too

Fixes QubesOS/qubes-issues#4813
This commit is contained in:
Marek Marczykowski-Górecki 2019-02-12 22:23:38 +01:00
parent 072e05e328
commit 52188318b8
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -694,8 +694,9 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtGui.QDialog):
self.update_virt_mode_list()
windows_running = self.vm.features.get('os', None) == 'Windows' and \
self.vm.is_running()
windows_running = \
self.vm.features.check_with_template('os', None) == 'Windows' \
and self.vm.is_running()
self.seamless_on_button.setEnabled(windows_running)
self.seamless_off_button.setEnabled(windows_running)