mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Update to PySide6.
It sounds like PySide2 will not be moving to Python 3.11, so we're stuck on 3.10 without this. Upgrading to a newer Qt also fixes some high DPI bugs (the file browser dialog for save/load is no longer tiny on 4k). https://github.com/pyinstaller/pyinstaller/issues/5414 previously blocked this, but the bug appears to be fixed now.
This commit is contained in:
@@ -7,10 +7,10 @@ from datetime import datetime
|
||||
from pathlib import Path
|
||||
from typing import Optional
|
||||
|
||||
from PySide2 import QtWidgets
|
||||
from PySide2.QtCore import Qt
|
||||
from PySide2.QtGui import QPixmap
|
||||
from PySide2.QtWidgets import QApplication, QCheckBox, QSplashScreen
|
||||
from PySide6 import QtWidgets
|
||||
from PySide6.QtCore import Qt
|
||||
from PySide6.QtGui import QPixmap
|
||||
from PySide6.QtWidgets import QApplication, QCheckBox, QSplashScreen
|
||||
from dcs.payloads import PayloadDirectories
|
||||
|
||||
from game import Game, VERSION, logging_config, persistency
|
||||
@@ -71,10 +71,6 @@ def run_ui(game: Game | None, ui_flags: UiFlags) -> None:
|
||||
|
||||
app = QApplication(sys.argv)
|
||||
|
||||
app.setAttribute(Qt.AA_DisableWindowContextHelpButton)
|
||||
app.setAttribute(Qt.AA_EnableHighDpiScaling, True) # enable highdpi scaling
|
||||
app.setAttribute(Qt.AA_UseHighDpiPixmaps, True) # use highdpi icons
|
||||
|
||||
# init the theme and load the stylesheet based on the theme index
|
||||
liberation_theme.init()
|
||||
with open(
|
||||
|
||||
Reference in New Issue
Block a user