mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-16 18:25:02 -06:00
snapshots: Fix initial UI state when guest has no snapshots
This commit is contained in:
parent
b1d3987aaa
commit
85ec41c3c9
@ -82,8 +82,7 @@ class vmmSnapshotPage(vmmGObjectUI):
|
||||
|
||||
self.top_box = self.widget("snapshot-top-box")
|
||||
self.widget("snapshot-top-window").remove(self.top_box)
|
||||
|
||||
self._set_snapshot_state(None)
|
||||
self.widget("snapshot-list").get_selection().emit("changed")
|
||||
|
||||
|
||||
##############
|
||||
@ -187,7 +186,6 @@ class vmmSnapshotPage(vmmGObjectUI):
|
||||
if current:
|
||||
do_select = treeiter
|
||||
|
||||
self._set_snapshot_state(None)
|
||||
if len(model):
|
||||
if do_select is None:
|
||||
do_select = model.get_iter_from_string("0")
|
||||
|
Loading…
Reference in New Issue
Block a user