update main file to create application and check for wizard need

This commit is contained in:
2025-06-24 15:48:03 +02:00
parent 4bc7901c93
commit 08b23f01f8

17
main.py
View File

@@ -1,4 +1,19 @@
from src import first_launch, settings
from src.ui.widgets.welcome_wizard import launch_wizard as startup
from PySide6 import QtWidgets
import sys
from src.ui.userInterface import launch_gui as UI
if __name__ == "__main__":
UI()
app = QtWidgets.QApplication(sys.argv)
if not first_launch:
setup = startup()
if setup == 1:
settings.reload()
# kill qApplication singleton
UI()
else:
sys.exit()
else:
UI()