mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-03-10 12:58:27 +03:00
vsockdetails: Show CID for active VM if the attribute auto is set to yes
Signed-off-by: Lin Ma <lma@suse.com>
This commit is contained in:
parent
63db4de0b5
commit
eadb5b6193
@ -56,6 +56,11 @@ class vmmVsockDetails(vmmGObjectUI):
|
|||||||
else:
|
else:
|
||||||
cid = self.MIN_GUEST_CID
|
cid = self.MIN_GUEST_CID
|
||||||
|
|
||||||
|
label = self.widget("vsock-auto").get_label().split(" (")[0]
|
||||||
|
if is_auto and self.vm.is_active():
|
||||||
|
label += " (%s %s)" % (_("CID"), cid)
|
||||||
|
self.widget("vsock-auto").set_label(label)
|
||||||
|
|
||||||
self.widget("vsock-auto").set_active(is_auto)
|
self.widget("vsock-auto").set_active(is_auto)
|
||||||
self.widget("vsock-cid").set_value(cid)
|
self.widget("vsock-cid").set_value(cid)
|
||||||
self.widget("vsock-cid").set_visible(not is_auto)
|
self.widget("vsock-cid").set_visible(not is_auto)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user