diff options
author | Cole Robinson <crobinso@redhat.com> | 2020-09-19 17:30:08 -0400 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2020-09-19 17:10:19 -0400 |
commit | 748639702ebca7fcfc1883cf3272d4ff55015080 (patch) | |
tree | 373685d3ac51491e26be0fa757b266bae2b5b10c /virtManager/preferences.py | |
parent | 8ce83dbc53f4363b540449da1e359b39f49b34d1 (diff) | |
download | virt-manager-748639702ebca7fcfc1883cf3272d4ff55015080.tar.gz |
preferences: Unconditionally add usbredir devs for spice
Remove the preference option to disable this. This was added with
the initial usbredir support because I was afraid people would
complain. They did complain, but only about the auto redir behavior
of the spice client. We still have a toggle to disable that behavior
If people don't want usbredir devices, I'm comfortable telling
them to remove them manually, or use virt-install
Signed-off-by: Cole Robinson <crobinso@redhat.com>
Diffstat (limited to 'virtManager/preferences.py')
-rw-r--r-- | virtManager/preferences.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/virtManager/preferences.py b/virtManager/preferences.py index a45cccf9..c0d4cda5 100644 --- a/virtManager/preferences.py +++ b/virtManager/preferences.py @@ -45,7 +45,6 @@ class vmmPreferences(vmmGObjectUI): self.refresh_console_autoconnect() self.refresh_new_vm_sound() self.refresh_graphics_type() - self.refresh_add_spice_usbredir() self.refresh_storage_format() self.refresh_cpu_default() self.refresh_cpu_poll() @@ -74,7 +73,6 @@ class vmmPreferences(vmmGObjectUI): "on_prefs_console_autoconnect_toggled": self.change_console_autoconnect, "on_prefs_new_vm_sound_toggled": self.change_new_vm_sound, "on_prefs_graphics_type_changed": self.change_graphics_type, - "on_prefs_add_spice_usbredir_changed": self.change_add_spice_usbredir, "on_prefs_storage_format_changed": self.change_storage_format, "on_prefs_cpu_default_changed": self.change_cpu_default, "on_prefs_stats_enable_cpu_toggled": self.change_cpu_poll, @@ -154,16 +152,6 @@ class vmmPreferences(vmmGObjectUI): combo.set_model(model) uiutil.init_combo_text_column(combo, 1) - combo = self.widget("prefs-add-spice-usbredir") - # [gsettings value, string] - model = Gtk.ListStore(str, str) - for row in [["system", _("System default (%s)") % - self.config.default_add_spice_usbredir], - ["yes", _("Yes")], ["no", _("No")]]: - model.append(row) - combo.set_model(model) - uiutil.init_combo_text_column(combo, 1) - combo = self.widget("prefs-storage-format") # [gsettings value, string] model = Gtk.ListStore(str, str) @@ -243,10 +231,6 @@ class vmmPreferences(vmmGObjectUI): combo = self.widget("prefs-graphics-type") gtype = self.config.get_graphics_type(raw=True) uiutil.set_list_selection(combo, gtype) - def refresh_add_spice_usbredir(self): - combo = self.widget("prefs-add-spice-usbredir") - val = self.config.get_add_spice_usbredir(raw=True) - uiutil.set_list_selection(combo, val) def refresh_storage_format(self): combo = self.widget("prefs-storage-format") val = self.config.get_default_storage_format(raw=True) @@ -391,11 +375,6 @@ class vmmPreferences(vmmGObjectUI): def change_graphics_type(self, src): val = uiutil.get_list_selection(src) self.config.set_graphics_type(val) - uiutil.set_grid_row_visible( - self.widget("prefs-add-spice-usbredir"), - self.config.get_graphics_type() == "spice") - def change_add_spice_usbredir(self, src): - self.config.set_add_spice_usbredir(uiutil.get_list_selection(src)) def change_storage_format(self, src): typ = uiutil.get_list_selection(src) or "default" self.config.set_storage_format(typ.lower()) |