enabled pixmap scaling in tray

This commit is contained in:
Jakub Trllo 2022-09-08 11:23:56 +02:00
parent a25c6e5cd7
commit 5627c8ec62

View file

@ -778,6 +778,14 @@ def main():
if not app:
app = QtWidgets.QApplication([])
for attr_name in (
"AA_EnableHighDpiScaling",
"AA_UseHighDpiPixmaps"
):
attr = getattr(QtCore.Qt, attr_name, None)
if attr is not None:
app.setAttribute(attr)
starter = PypeTrayStarter(app)
# TODO remove when pype.exe will have an icon