gfxdetails: Default to configured graphics type, not always spice

So if the user chooses a different value from Preferences, or
app is built with a different value, default to that in Add Hardware

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2021-07-01 11:24:43 -04:00
parent eb6b79396b
commit 10515ea167

View File

@ -187,7 +187,9 @@ class vmmGraphicsDetails(vmmGObjectUI):
############## ##############
def reset_state(self): def reset_state(self):
self.widget("graphics-type").set_active(0) uiutil.set_list_selection(
self.widget("graphics-type"),
self.config.get_graphics_type())
self.widget("graphics-listen-type").set_active(0) self.widget("graphics-listen-type").set_active(0)
self.widget("graphics-address").set_active(0) self.widget("graphics-address").set_active(0)