Rare: Add attribute for HiDPI
This commit is contained in:
parent
d6ef44b2f9
commit
6b2e8eef98
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue