Clear startup errors when VM finally is running (#799)
This commit is contained in:
parent
4f77108c5f
commit
f79a1ed42e
@ -1196,6 +1196,10 @@ class VmManagerWindow(Ui_VmManagerWindow, QMainWindow):
|
|||||||
for vm in self.vms_list:
|
for vm in self.vms_list:
|
||||||
state = vm.get_power_state()
|
state = vm.get_power_state()
|
||||||
if vm.last_power_state != state:
|
if vm.last_power_state != state:
|
||||||
|
if state == "Running" and \
|
||||||
|
self.vm_errors.get(vm.qid, "")\
|
||||||
|
.startswith("Error starting VM:"):
|
||||||
|
self.clear_error(vm.qid)
|
||||||
prev_running = vm.last_running
|
prev_running = vm.last_running
|
||||||
vm.last_power_state = state
|
vm.last_power_state = state
|
||||||
vm.last_running = (state in ["Running", "Transient"])
|
vm.last_running = (state in ["Running", "Transient"])
|
||||||
@ -1216,6 +1220,10 @@ class VmManagerWindow(Ui_VmManagerWindow, QMainWindow):
|
|||||||
# startup
|
# startup
|
||||||
if state == "Running" and not vm.qubes_manager_state[QMVmState.AudioRecAvailable]:
|
if state == "Running" and not vm.qubes_manager_state[QMVmState.AudioRecAvailable]:
|
||||||
self.update_audio_rec_info(vm)
|
self.update_audio_rec_info(vm)
|
||||||
|
if self.vm_errors.get(vm.qid, "") == \
|
||||||
|
"Error starting VM: Cannot execute qrexec-daemon!" \
|
||||||
|
and vm.is_qrexec_running():
|
||||||
|
self.clear_error(vm.qid)
|
||||||
|
|
||||||
if self.screen_changed == True:
|
if self.screen_changed == True:
|
||||||
reload_table = True
|
reload_table = True
|
||||||
|
Loading…
Reference in New Issue
Block a user