Fix PyInstaller frozen binary AttributeError for missing log method

- Fixed AttributeError: 'AutoInstallerGUI' object has no attribute 'log'
- Replaced self.log() call with print() in detect_default_disk method
- The log method is only available in InstallerWorker class, not AutoInstallerGUI
- This resolves the crash when running frozen PyInstaller binary
- Maintains logging functionality for disk detection without breaking frozen binary

This fixes the PyInstaller frozen binary crash that occurred during GUI initialization
when trying to auto-detect the default installation disk.
parent d7404ec6
...@@ -1003,7 +1003,7 @@ class AutoInstallerGUI(QMainWindow): ...@@ -1003,7 +1003,7 @@ class AutoInstallerGUI(QMainWindow):
if size_gb >= 4: if size_gb >= 4:
# Set as default disk # Set as default disk
self.selected_disk = disk self.selected_disk = disk
self.log(f"Auto-selected installation disk: {disk} ({size_gb} GB)") print(f"Auto-selected installation disk: {disk} ({size_gb} GB)")
break break
except (subprocess.CalledProcessError, ValueError, IndexError): except (subprocess.CalledProcessError, ValueError, IndexError):
continue continue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment