mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
details: Don't list display indexes starting at 0
This commit is contained in:
parent
a7276b2c23
commit
a567f18b9e
@ -2099,7 +2099,7 @@ class vmmDetails(gobject.GObject):
|
|||||||
for gfxinfo in self.vm.get_graphics_devices():
|
for gfxinfo in self.vm.get_graphics_devices():
|
||||||
currentGraphics[gfxinfo[1]] = 1
|
currentGraphics[gfxinfo[1]] = 1
|
||||||
update_hwlist(HW_LIST_TYPE_GRAPHICS, gfxinfo,
|
update_hwlist(HW_LIST_TYPE_GRAPHICS, gfxinfo,
|
||||||
_("Display %s") % gfxinfo[1],
|
_("Display %s") % (int(gfxinfo[1]) + 1),
|
||||||
"video-display")
|
"video-display")
|
||||||
|
|
||||||
# Populate list of sound devices
|
# Populate list of sound devices
|
||||||
@ -2113,7 +2113,8 @@ class vmmDetails(gobject.GObject):
|
|||||||
currentChars[charinfo[1]] = 1
|
currentChars[charinfo[1]] = 1
|
||||||
label = charinfo[0].capitalize()
|
label = charinfo[0].capitalize()
|
||||||
if charinfo[0] != "console":
|
if charinfo[0] != "console":
|
||||||
label += " %s" % charinfo[3] # Don't show port for console
|
# Don't show port for console
|
||||||
|
label += " %s" % (int(charinfo[3]) + 1)
|
||||||
|
|
||||||
update_hwlist(HW_LIST_TYPE_CHAR, charinfo, label,
|
update_hwlist(HW_LIST_TYPE_CHAR, charinfo, label,
|
||||||
"device_serial")
|
"device_serial")
|
||||||
|
Loading…
Reference in New Issue
Block a user