mirror of
https://github.com/mbusb/multibootusb
synced 2024-11-18 15:25:46 +00:00
copy_mbusb_dir_usb() only after user agrees
This commit is contained in:
parent
f3c0b800ee
commit
b3f86b0c4d
@ -510,7 +510,6 @@ Are you SURE you want to enable it?",
|
|||||||
# self.ui.image_path.clear()
|
# self.ui.image_path.clear()
|
||||||
if config.distro:
|
if config.distro:
|
||||||
log("MultiBoot Install: Distro type detected: " + config.distro)
|
log("MultiBoot Install: Distro type detected: " + config.distro)
|
||||||
copy_mbusb_dir_usb(config.usb_disk)
|
|
||||||
if not os.path.exists(os.path.join(config.usb_mount, "multibootusb", iso_basename(config.image_path))):
|
if not os.path.exists(os.path.join(config.usb_mount, "multibootusb", iso_basename(config.image_path))):
|
||||||
config.persistence = self.ui.slider_persistence.value() * 1024 * 1024
|
config.persistence = self.ui.slider_persistence.value() * 1024 * 1024
|
||||||
log("Persistence chosen is " + str(bytes2human(config.persistence)))
|
log("Persistence chosen is " + str(bytes2human(config.persistence)))
|
||||||
@ -529,6 +528,7 @@ Are you SURE you want to enable it?",
|
|||||||
|
|
||||||
if reply == QtWidgets.QMessageBox.Yes:
|
if reply == QtWidgets.QMessageBox.Yes:
|
||||||
self.ui.slider_persistence.setEnabled(False)
|
self.ui.slider_persistence.setEnabled(False)
|
||||||
|
copy_mbusb_dir_usb(config.usb_disk)
|
||||||
config.process_exist = True
|
config.process_exist = True
|
||||||
self.progress_thread_install.start()
|
self.progress_thread_install.start()
|
||||||
elif reply == QtWidgets.QMessageBox.No:
|
elif reply == QtWidgets.QMessageBox.No:
|
||||||
|
Loading…
Reference in New Issue
Block a user