Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions qubesmanager/qube_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1055,6 +1055,8 @@

row_no = 0
for vm in self.qubes_app.domains:
if vm.klass == "RemoteVM":
continue

Check warning on line 1059 in qubesmanager/qube_manager.py

View check run for this annotation

Codecov / codecov/patch

qubesmanager/qube_manager.py#L1059

Added line #L1059 was not covered by tests
progress.setValue(row_no)
self.qubes_cache.add_vm(vm)
row_no += 1
Expand Down Expand Up @@ -1083,6 +1085,8 @@
action.triggered.connect(partial(self.change_network, 'default'))

for vm in self.qubes_app.domains:
if vm.klass == "RemoteVM":
continue

Check warning on line 1089 in qubesmanager/qube_manager.py

View check run for this annotation

Codecov / codecov/patch

qubesmanager/qube_manager.py#L1089

Added line #L1089 was not covered by tests
if vm.qid != 0 and vm.provides_network:
action = self.network_menu.addAction(vm.name)
action.setData(vm.name)
Expand Down Expand Up @@ -1145,13 +1149,17 @@

def update_running_size(self, *_args):
for vm in self.qubes_app.domains:
if vm.klass == "RemoteVM":
continue

Check warning on line 1153 in qubesmanager/qube_manager.py

View check run for this annotation

Codecov / codecov/patch

qubesmanager/qube_manager.py#L1153

Added line #L1153 was not covered by tests
if vm.is_running():
self.qubes_cache.get_vm(qid=vm.qid).update(
update_size_on_disk=True, event='disk_size')

def on_domain_added(self, _submitter, _event, vm, **_kwargs):
try:
domain = self.qubes_app.domains[vm]
if domain.klass == "RemoteVM":
return

Check warning on line 1162 in qubesmanager/qube_manager.py

View check run for this annotation

Codecov / codecov/patch

qubesmanager/qube_manager.py#L1162

Added line #L1162 was not covered by tests
self.qubes_cache.add_vm(domain)
self.proxy.invalidate()
if domain.klass == 'TemplateVM':
Expand Down