Warn if trying to change layout on unsupported vms in Qube Manager
requires https://github.com/QubesOS/qubes-core-admin-client/pull/161 references QubesOS/qubes-issues#6030
This commit is contained in:
parent
6180f0a899
commit
bac36675dc
@ -1318,7 +1318,17 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QMainWindow):
|
|||||||
def action_set_keyboard_layout_triggered(self):
|
def action_set_keyboard_layout_triggered(self):
|
||||||
# pylint: disable=invalid-name
|
# pylint: disable=invalid-name
|
||||||
for vm_info in self.get_selected_vms():
|
for vm_info in self.get_selected_vms():
|
||||||
vm_info.vm.run('qubes-change-keyboard-layout')
|
if vm_info.vm.features.check_with_template(
|
||||||
|
"supported-feature.keyboard-layout", False):
|
||||||
|
vm_info.vm.run('qubes-change-keyboard-layout')
|
||||||
|
else:
|
||||||
|
QMessageBox.warning(
|
||||||
|
self,
|
||||||
|
self.tr("Keyboard layout change unsupported"),
|
||||||
|
self.tr(
|
||||||
|
"Please update the qube {} or its template to the "
|
||||||
|
"newest version of Qubes tools.").format(
|
||||||
|
str(vm_info.vm)))
|
||||||
|
|
||||||
# noinspection PyArgumentList
|
# noinspection PyArgumentList
|
||||||
@pyqtSlot(name='on_action_editfwrules_triggered')
|
@pyqtSlot(name='on_action_editfwrules_triggered')
|
||||||
|
Loading…
Reference in New Issue
Block a user