Skip to content

Commit

Permalink
Ignore RemoteVM for now
Browse files Browse the repository at this point in the history
  • Loading branch information
fepitre committed Nov 25, 2024
1 parent c01bc86 commit 41f36b4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions qubesmanager/qube_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1054,6 +1054,8 @@ def fill_cache(self):

row_no = 0
for vm in self.qubes_app.domains:
if vm.klass == "RemoteVM":
continue
progress.setValue(row_no)
self.qubes_cache.add_vm(vm)
row_no += 1
Expand Down Expand Up @@ -1082,6 +1084,8 @@ def init_network_menu(self):
action.triggered.connect(partial(self.change_network, 'default'))

for vm in self.qubes_app.domains:
if vm.klass == "RemoteVM":
continue
if vm.qid != 0 and vm.provides_network:
action = self.network_menu.addAction(vm.name)
action.setData(vm.name)
Expand Down Expand Up @@ -1144,13 +1148,17 @@ def check_updates(self, info=None):

def update_running_size(self, *_args):
for vm in self.qubes_app.domains:
if vm.klass == "RemoteVM":
continue
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
self.qubes_cache.add_vm(domain)
self.proxy.invalidate()
if domain.klass == 'TemplateVM':
Expand Down

0 comments on commit 41f36b4

Please sign in to comment.