summaryrefslogtreecommitdiff
path: root/virt-manager
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2019-06-05 17:40:54 -0400
committerCole Robinson <crobinso@redhat.com>2019-06-13 07:17:34 -0400
commit2266b650a51939b4c2a13ce521612cb73e9a276b (patch)
treef868d8dc3b236da3b61029d5ea6631cee3d462d6 /virt-manager
parent2a1cf411ddee8ca00241b129fdcb4d0f763a1563 (diff)
downloadvirt-manager-2266b650a51939b4c2a13ce521612cb73e9a276b.tar.gz
preferences: Disable XML editing by default
This adds a field in gsettings and preferences UI to enable XML editing. It's off by default. The XML tab page is still visible, but the textview is not editable, and there's a warning at the top: XML editing is disabled in 'Preferences'. Only enable it if you know what you are doing. When the setting is enabled, the warning goes away and the textview is editable. This puts a roadblock up for people that don't know what they are doing, but still advertises the feature and keeps the UI surface difference fairly small between on/off states.
Diffstat (limited to 'virt-manager')
-rwxr-xr-xvirt-manager1
1 files changed, 1 insertions, 0 deletions
diff --git a/virt-manager b/virt-manager
index 8efb98bb..781882a9 100755
--- a/virt-manager
+++ b/virt-manager
@@ -192,6 +192,7 @@ class CLITestOptionsClass:
self.leak_debug = _get("leak-debug")
self.old_poll = _get("old-poll")
self.no_events = _get("no-events")
+ self.xmleditor_enabled = _get("xmleditor-enabled")
if opts:
print("Unknown --test-options keys: %s" % opts)