From d99f8fef0995be5034cd7f92242d96c35f7704ab Mon Sep 17 00:00:00 2001 From: Chris Seagraves <47610393+nosv1@users.noreply.github.com> Date: Tue, 29 Jun 2021 17:19:37 -0500 Subject: [PATCH] Update main.py (#1382) --- qt_ui/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qt_ui/main.py b/qt_ui/main.py index 744f90de..d1aacdff 100644 --- a/qt_ui/main.py +++ b/qt_ui/main.py @@ -7,6 +7,7 @@ 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, QSplashScreen from dcs.payloads import PayloadDirectories @@ -62,6 +63,8 @@ def run_ui(game: Optional[Game]) -> None: os.environ["QT_AUTO_SCREEN_SCALE_FACTOR"] = "1" # Potential fix for 4K screens app = QApplication(sys.argv) + app.setAttribute(Qt.AA_DisableWindowContextHelpButton) + # init the theme and load the stylesheet based on the theme index liberation_theme.init() with open(