mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
virtManager, create: re-enable distro detection with URLs
It was broken by commit 4ee97133e7
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
e22d841d2c
commit
9af18bf4e6
@ -1168,9 +1168,7 @@ class vmmCreate(vmmGObjectUI):
|
||||
self.start_detection(forward=forward)
|
||||
|
||||
def toggle_detect_os(self, src):
|
||||
dodetect = not self.conn.is_remote()
|
||||
src.set_active(dodetect)
|
||||
src.set_visible(dodetect)
|
||||
dodetect = src.get_active()
|
||||
|
||||
self.widget("install-os-type-label").set_visible(dodetect)
|
||||
self.widget("install-os-version-label").set_visible(dodetect)
|
||||
@ -1288,10 +1286,12 @@ class vmmCreate(vmmGObjectUI):
|
||||
INSTALL_PAGE_CONTAINER_OS]
|
||||
osbox.set_visible(iscontainer)
|
||||
|
||||
if instpage in (INSTALL_PAGE_ISO, INSTALL_PAGE_URL):
|
||||
detectbox.show()
|
||||
else:
|
||||
detectbox.hide()
|
||||
enabledetect = (instpage == INSTALL_PAGE_ISO and
|
||||
self.conn and
|
||||
not self.conn.is_remote() or
|
||||
self.get_config_install_page() == INSTALL_PAGE_URL)
|
||||
|
||||
detectbox.set_visible(enabledetect)
|
||||
|
||||
if instpage == INSTALL_PAGE_PXE:
|
||||
# Hide the install notebook for pxe, since there isn't anything
|
||||
|
Loading…
Reference in New Issue
Block a user