mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
snapshots: Maintain selection after refresh
This commit is contained in:
parent
0e812e3c42
commit
2f12823cb5
@ -79,7 +79,7 @@ class vmmSnapshotPage(vmmGObjectUI):
|
||||
"on_snapshot_apply_clicked": self._on_apply_clicked,
|
||||
"on_snapshot_list_changed": self._snapshot_selected,
|
||||
"on_snapshot_list_button_press_event": self._popup_snapshot_menu,
|
||||
"on_snapshot_refresh_clicked": self._refresh_snapshots,
|
||||
"on_snapshot_refresh_clicked": self._on_refresh_clicked,
|
||||
"on_snapshot_list_row_activated": self._on_start_clicked,
|
||||
|
||||
# 'Create' dialog
|
||||
@ -603,6 +603,9 @@ class vmmSnapshotPage(vmmGObjectUI):
|
||||
self._snapshot_new.show()
|
||||
self.widget("snapshot-new-name").grab_focus()
|
||||
|
||||
def _on_refresh_clicked(self, ignore):
|
||||
self._refresh_snapshots()
|
||||
|
||||
def _on_start_clicked(self, ignore, ignore2=None, ignore3=None):
|
||||
snaps = self._get_selected_snapshots()
|
||||
if not snaps or len(snaps) > 1:
|
||||
|
Loading…
Reference in New Issue
Block a user