Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Commit

Permalink
Require app instance of QtCore.Application
Browse files Browse the repository at this point in the history
  • Loading branch information
srevinsaju committed Sep 13, 2020
1 parent cdb224d commit dc943fb
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions guiscrcpy/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit dc943fb

Please sign in to comment.