Propagate configuration into PySide6 launcher

This commit is contained in:
lm 2025-10-19 19:25:12 +02:00
parent 0ca5607fc7
commit 91bdf37512
1 changed files with 6 additions and 1 deletions

View File

@ -7,6 +7,7 @@ from pathlib import Path
from PySide6 import QtGui, QtWidgets
from app.logic import DEFAULTS, LANGUAGE, RESET_EXCLUSIONS_ON_IMAGE_CHANGE
from .main_window import MainWindow
@ -45,6 +46,10 @@ def create_application() -> QtWidgets.QApplication:
def run() -> int:
"""Run the PySide6 GUI."""
app = create_application()
window = MainWindow()
window = MainWindow(
language=LANGUAGE,
defaults=DEFAULTS.copy(),
reset_exclusions=RESET_EXCLUSIONS_ON_IMAGE_CHANGE,
)
window.show()
return app.exec()