mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-24 21:34:47 +03:00
virt-manager: Hide snapshot work behind --experimental-snapshot-ui
I don't want to publicize the UI and the current feature set until we are sure it's what we want to support, so hide it for now.
This commit is contained in:
parent
e8531b1f40
commit
948b5359d2
@ -105,6 +105,11 @@ def parse_commandline():
|
||||
optParser.add_option("--trace-libvirt", dest="tracelibvirt",
|
||||
help=optparse.SUPPRESS_HELP, action="store_true")
|
||||
|
||||
# Option to enable snapshot UI. This command line option will
|
||||
# not exist for ever.
|
||||
optParser.add_option("--experimental-snapshot-ui", dest="snapshot",
|
||||
help=optparse.SUPPRESS_HELP, action="store_true")
|
||||
|
||||
# Don't load any connections on startup to test first run
|
||||
# PackageKit integration
|
||||
optParser.add_option("--test-first-run", dest="testfirstrun",
|
||||
@ -239,6 +244,7 @@ def main():
|
||||
config.default_qemu_user = cliconfig.default_qemu_user
|
||||
config.rhel6_defaults = not cliconfig.rhel_enable_unsupported_opts
|
||||
config.preferred_distros = cliconfig.preferred_distros
|
||||
config.experimental_snapshot_ui = bool(options.snapshot)
|
||||
|
||||
config.hv_packages = cliconfig.hv_packages
|
||||
config.libvirt_packages = cliconfig.libvirt_packages
|
||||
|
@ -168,6 +168,7 @@ class vmmConfig(object):
|
||||
self.libvirt_packages = []
|
||||
self.askpass_package = []
|
||||
self.default_graphics_from_config = "vnc"
|
||||
self.experimental_snapshot_ui = False
|
||||
|
||||
self._objects = []
|
||||
|
||||
|
@ -377,6 +377,10 @@ class vmmDetails(vmmGObjectUI):
|
||||
self.console = vmmConsolePages(self.vm, self.builder, self.topwin)
|
||||
self.snapshots = vmmSnapshotPage(self.vm, self.builder, self.topwin)
|
||||
self.widget("snapshot-placeholder").add(self.snapshots.top_box)
|
||||
self.widget("control-snapshots").set_visible(
|
||||
self.config.experimental_snapshot_ui)
|
||||
self.widget("details-menu-view-snapshots").set_visible(
|
||||
self.config.experimental_snapshot_ui)
|
||||
|
||||
# Set default window size
|
||||
w, h = self.vm.get_details_window_size()
|
||||
|
Loading…
Reference in New Issue
Block a user