1
0
Fork 0
mirror of synced 2024-06-02 18:54:41 +12:00

Rare: Add attribute for HiDPI

This commit is contained in:
Stelios Tsampas 2022-02-25 20:05:20 +02:00
parent d6ef44b2f9
commit 6b2e8eef98
No known key found for this signature in database
GPG key ID: 2FAEBF7B5BE5FD7C

View file

@ -8,7 +8,7 @@ import time
import traceback
from argparse import Namespace
from PyQt5.QtCore import QThreadPool, QSettings, QTranslator
from PyQt5.QtCore import Qt, QThreadPool, QSettings, QTranslator
from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import QApplication, QSystemTrayIcon, QMessageBox
from requests import HTTPError
@ -61,6 +61,9 @@ class App(QApplication):
self.window_launched = False
self.setQuitOnLastWindowClosed(False)
if hasattr(Qt, 'AA_UseHighDpiPixmaps'):
self.setAttribute(Qt.AA_UseHighDpiPixmaps)
# init Legendary
try:
self.core = LegendaryCoreSingleton()