From 10515ea167dbe462622e903e01cd253c31e8de58 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Thu, 1 Jul 2021 11:24:43 -0400 Subject: [PATCH] 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 --- virtManager/device/gfxdetails.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/virtManager/device/gfxdetails.py b/virtManager/device/gfxdetails.py index 78967c0e9..51b4544ac 100644 --- a/virtManager/device/gfxdetails.py +++ b/virtManager/device/gfxdetails.py @@ -187,7 +187,9 @@ class vmmGraphicsDetails(vmmGObjectUI): ############## 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-address").set_active(0)