Skip to content

Commit

Permalink
add another possible fix for #36
Browse files Browse the repository at this point in the history
  • Loading branch information
tobi committed Sep 20, 2020
1 parent 179bfd6 commit 2998eb6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion BlenderUpdater.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@

from PySide2 import QtWidgets, QtCore, QtGui

os.environ["QT_AUTO_SCREEN_SCALE_FACTOR"] = "1"

app = QtWidgets.QApplication(sys.argv)

app.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling)

appversion = "1.9.6"
dir_ = ""
config = configparser.ConfigParser()
Expand Down Expand Up @@ -609,7 +614,6 @@ def exec_linux(self):
def main():
app.setStyleSheet(qdarkstyle.load_stylesheet_pyside2())
window = BlenderUpdater()
QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling)
window.setWindowTitle(f"Overmind Studios Blender Updater {appversion}")
window.statusbar.setSizeGripEnabled(False)
window.show()
Expand Down

0 comments on commit 2998eb6

Please sign in to comment.