From 08b23f01f8fdd126cd9322bffb5d8357050a3b90 Mon Sep 17 00:00:00 2001 From: WorldTeacher Date: Tue, 24 Jun 2025 15:48:03 +0200 Subject: [PATCH] update main file to create application and check for wizard need --- main.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 328ce8b..4066d3d 100644 --- a/main.py +++ b/main.py @@ -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() \ No newline at end of file