From dc943fb063f85cb053ce358bf73e7c0ba288b505 Mon Sep 17 00:00:00 2001 From: Srevin Saju Date: Sun, 13 Sep 2020 13:03:34 +0300 Subject: [PATCH] Require app instance of QtCore.Application --- guiscrcpy/launcher.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/guiscrcpy/launcher.py b/guiscrcpy/launcher.py index 0a336d48..89de3f6c 100644 --- a/guiscrcpy/launcher.py +++ b/guiscrcpy/launcher.py @@ -1214,19 +1214,13 @@ def set_scrcpy_server_path(config): return config -def bootstrap(cfgmgr, theme='Breeze', aot=True, debug__no_scrcpy=False, +def bootstrap(app, cfgmgr, theme='Breeze', aot=True, debug__no_scrcpy=False, hide_wm_frame=True): """ Launch the guiscrcpy window :return: """ config = cfgmgr.get_config() - # enable High DPI scaling - QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True) - # use HIGH DPI icons - QApplication.setAttribute(QtCore.Qt.AA_UseHighDpiPixmaps, True) - # init core - app = QtWidgets.QApplication([]) # load fonts font_database = QFontDatabase()