Konfiguration wird geladen und gespeichert.
This commit is contained in:
+9
-4
@@ -6,14 +6,14 @@ from ui.MainWindow import MainWindow
|
||||
from ui.AppSettings import AppSettingsDlg
|
||||
from conf import app_settings
|
||||
|
||||
#import qdarktheme
|
||||
# import qdarktheme
|
||||
|
||||
|
||||
def main():
|
||||
"""Haupteinstiegspunkt der Anwendung."""
|
||||
# QApplication-Instanz erstellen
|
||||
app = QApplication(sys.argv)
|
||||
|
||||
|
||||
# Dark Theme aktivieren
|
||||
# qdarktheme.setup_theme("auto")
|
||||
|
||||
@@ -22,8 +22,13 @@ def main():
|
||||
|
||||
# Hauptfenster anzeigen
|
||||
window.show()
|
||||
|
||||
if len(app_settings.apache_fops) == 0 or len(app_settings.diff_pdfs) == 0 or len(app_settings.java_vms) == 0 or len(app_settings.saxon_jars):
|
||||
|
||||
if (
|
||||
len(app_settings.apache_fops) == 0
|
||||
or len(app_settings.diff_pdfs) == 0
|
||||
or len(app_settings.java_vms) == 0
|
||||
or len(app_settings.saxon_jars) == 0
|
||||
):
|
||||
# Als Modal Dialog öffnen!
|
||||
dlg = AppSettingsDlg(window, app_settings)
|
||||
dlg.exec()
|
||||
|
||||
Reference in New Issue
Block a user