mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
gfxdetails: Really fix pylint
This commit is contained in:
parent
16390a5433
commit
8a544fa316
@ -165,8 +165,6 @@ class vmmGraphicsDetails(vmmGObjectUI):
|
|||||||
is_vnc = (gtype == "vnc")
|
is_vnc = (gtype == "vnc")
|
||||||
is_sdl = (gtype == "sdl")
|
is_sdl = (gtype == "sdl")
|
||||||
is_spice = (gtype == "spice")
|
is_spice = (gtype == "spice")
|
||||||
is_other = not (True in [is_vnc, is_sdl, is_spice])
|
|
||||||
|
|
||||||
title = (_("%(graphicstype)s Server") %
|
title = (_("%(graphicstype)s Server") %
|
||||||
{"graphicstype" : gfx.pretty_type_simple(gtype)})
|
{"graphicstype" : gfx.pretty_type_simple(gtype)})
|
||||||
|
|
||||||
@ -183,8 +181,6 @@ class vmmGraphicsDetails(vmmGObjectUI):
|
|||||||
self.widget("graphics-password-chk").set_active(use_passwd)
|
self.widget("graphics-password-chk").set_active(use_passwd)
|
||||||
self.widget("graphics-password").set_sensitive(use_passwd)
|
self.widget("graphics-password").set_sensitive(use_passwd)
|
||||||
|
|
||||||
settype = gtype
|
|
||||||
|
|
||||||
if is_spice:
|
if is_spice:
|
||||||
set_port("graphics-tlsport", gfx.tlsPort)
|
set_port("graphics-tlsport", gfx.tlsPort)
|
||||||
|
|
||||||
@ -196,9 +192,6 @@ class vmmGraphicsDetails(vmmGObjectUI):
|
|||||||
self.widget("graphics-xauth").set_text(
|
self.widget("graphics-xauth").set_text(
|
||||||
gfx.xauth or _("Unknown"))
|
gfx.xauth or _("Unknown"))
|
||||||
|
|
||||||
if is_other:
|
|
||||||
settype = gfx.pretty_type_simple(gtype)
|
|
||||||
|
|
||||||
uiutil.set_combo_entry(self.widget("graphics-type"), gtype, 0)
|
uiutil.set_combo_entry(self.widget("graphics-type"), gtype, 0)
|
||||||
return title
|
return title
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user