mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Allow usage of webengine in main calibre process
This commit is contained in:
parent
5fe9010e74
commit
51f5dcb678
@ -926,6 +926,9 @@ class Application(QApplication):
|
|||||||
def __init__(self, args, force_calibre_style=False, override_program_name=None, headless=False, color_prefs=gprefs, windows_app_uid=None):
|
def __init__(self, args, force_calibre_style=False, override_program_name=None, headless=False, color_prefs=gprefs, windows_app_uid=None):
|
||||||
self.ignore_palette_changes = False
|
self.ignore_palette_changes = False
|
||||||
QNetworkProxyFactory.setUseSystemConfiguration(True)
|
QNetworkProxyFactory.setUseSystemConfiguration(True)
|
||||||
|
# Allow import of webengine after construction of QApplication on new
|
||||||
|
# enough PyQt
|
||||||
|
QApplication.setAttribute(Qt.ApplicationAttribute.AA_ShareOpenGLContexts)
|
||||||
if iswindows:
|
if iswindows:
|
||||||
self.windows_app_uid = None
|
self.windows_app_uid = None
|
||||||
if windows_app_uid:
|
if windows_app_uid:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user