Skip to content

Commit

Permalink
Update mtk_gui
Browse files Browse the repository at this point in the history
  • Loading branch information
bkerler committed Jul 12, 2023
1 parent 1ac6ed7 commit d326a3f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mtk_gui
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def load_translations(application):
if translator.load(lang, directory):
application.installTranslator(translator)

translations_path = QLibraryInfo.location(QLibraryInfo.TranslationsPath)
translations_path = QLibraryInfo.path(QLibraryInfo.TranslationsPath)
base_translator = QTranslator(application)
if base_translator.load(locale, "qtbase", "_", translations_path):
application.installTranslator(base_translator)
Expand Down Expand Up @@ -556,7 +556,6 @@ class MainWindow(QMainWindow):

if __name__ == '__main__':
# Enable nice 4K Scaling
QApplication.setAttribute(Qt.AA_EnableHighDpiScaling, True)
os.environ["QT_AUTO_SCREEN_SCALE_FACTOR"] = "1"

# Init the app window
Expand All @@ -582,7 +581,7 @@ if __name__ == '__main__':
addTopMargin = 20
if sys.platform.startswith('darwin'): # MacOS has the toolbar in the top bar insted of in the app...
addTopMargin = 0
win.setWindowTitle("MTKClient - Version 2.0 beta")
win.setWindowTitle("MTKClient - Version 2.0")
# lay = QVBoxLayout(self)

win.show()
Expand Down

0 comments on commit d326a3f

Please sign in to comment.