[utils] Fix pywebview deprecation issue (#423)

This commit is contained in:
aznd 2022-04-28 15:59:19 +02:00 committed by GitHub
parent 3d1042e27e
commit ec91f69adc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -127,7 +127,7 @@ def do_webview_login(callback_sid=None, callback_code=None):
window = webview.create_window(f'Legendary {__version__} - Epic Games Account Login', window = webview.create_window(f'Legendary {__version__} - Epic Games Account Login',
url=login_url, width=768, height=1024, js_api=api) url=login_url, width=768, height=1024, js_api=api)
api.window = window api.window = window
window.loaded += api.on_loaded window.events.loaded += api.on_loaded
try: try:
webview.start() webview.start()