Skip to content

Commit d588276

Browse files
committed
Added option to choose install distro using memdisk
1 parent 50a72af commit d588276

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

scripts/mbusb_gui.py

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -529,14 +529,23 @@ def onCreateClick(self):
529529
"No space available on " + config.usb_disk)
530530
self.ui_enable_controls()
531531
else:
532-
reply = QtWidgets.QMessageBox.question(self, 'Review selection...',
533-
'Selected USB disk: %s\n' % config.usb_disk +
534-
'USB mount point: %s\n' % config.usb_mount +
535-
'Selected distro: %s\n\n' % iso_name(
536-
config.image_path) +
537-
'Proceed with installation?',
538-
QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No,
539-
QtWidgets.QMessageBox.No)
532+
if config.distro == 'memdisk_iso':
533+
reply = QtWidgets.QMessageBox.question(self, 'Review selection...',
534+
'The ISO sleceted is not supported at the moment.\n'
535+
'You can try booting ISO using memdisk.\n'
536+
'Distro can be uninstalled anytime from main menu.\n\n'
537+
'Proceed with installation?',
538+
QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No,
539+
QtWidgets.QMessageBox.No)
540+
else:
541+
reply = QtWidgets.QMessageBox.question(self, 'Review selection...',
542+
'Selected USB disk: %s\n' % config.usb_disk +
543+
'USB mount point: %s\n' % config.usb_mount +
544+
'Selected distro: %s\n\n' % iso_name(
545+
config.image_path) +
546+
'Proceed with installation?',
547+
QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No,
548+
QtWidgets.QMessageBox.No)
540549

541550
if reply == QtWidgets.QMessageBox.Yes:
542551
self.ui.slider_persistence.setEnabled(False)

0 commit comments

Comments
 (0)