mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix check for ok to import webengine
This commit is contained in:
parent
e750217e99
commit
c2fef7f5ec
@ -205,7 +205,7 @@ def ok_to_import_webengine():
|
||||
from qt.core import QApplication
|
||||
if QApplication.instance() is None:
|
||||
return True
|
||||
if 'PyQt6.QtWebEngineWidgets' in sys.modules:
|
||||
if 'PyQt6.QtWebEngineCore' in sys.modules:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user