Næste version
This commit is contained in:
@@ -8,7 +8,6 @@ Start:
|
||||
import sys
|
||||
import os
|
||||
|
||||
# Sørg for at rodmappen er i Python-stien
|
||||
sys.path.insert(0, os.path.dirname(__file__))
|
||||
|
||||
from PyQt6.QtWidgets import QApplication
|
||||
@@ -21,7 +20,13 @@ def main():
|
||||
app.setApplicationName("LineDance Player")
|
||||
app.setOrganizationName("LineDance")
|
||||
|
||||
apply_theme(app, dark=True)
|
||||
# Indlæs sprog fra indstillinger
|
||||
from ui.settings_dialog import load_settings
|
||||
from translations import load_language
|
||||
settings = load_settings()
|
||||
load_language(settings.get("language", "da"))
|
||||
|
||||
apply_theme(app, dark=settings.get("dark_theme", True))
|
||||
|
||||
window = MainWindow()
|
||||
window.show()
|
||||
|
||||
Reference in New Issue
Block a user