Propagate configuration into PySide6 launcher
This commit is contained in:
parent
0ca5607fc7
commit
91bdf37512
|
|
@ -7,6 +7,7 @@ from pathlib import Path
|
||||||
|
|
||||||
from PySide6 import QtGui, QtWidgets
|
from PySide6 import QtGui, QtWidgets
|
||||||
|
|
||||||
|
from app.logic import DEFAULTS, LANGUAGE, RESET_EXCLUSIONS_ON_IMAGE_CHANGE
|
||||||
from .main_window import MainWindow
|
from .main_window import MainWindow
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -45,6 +46,10 @@ def create_application() -> QtWidgets.QApplication:
|
||||||
def run() -> int:
|
def run() -> int:
|
||||||
"""Run the PySide6 GUI."""
|
"""Run the PySide6 GUI."""
|
||||||
app = create_application()
|
app = create_application()
|
||||||
window = MainWindow()
|
window = MainWindow(
|
||||||
|
language=LANGUAGE,
|
||||||
|
defaults=DEFAULTS.copy(),
|
||||||
|
reset_exclusions=RESET_EXCLUSIONS_ON_IMAGE_CHANGE,
|
||||||
|
)
|
||||||
window.show()
|
window.show()
|
||||||
return app.exec()
|
return app.exec()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue