fix: initialize WebEngine before showing window

This commit is contained in:
2026-09-21 23:07:13 +08:00
parent a589e1df19
commit 1b4e974b77
6 changed files with 48 additions and 17 deletions
+1
View File
@@ -139,6 +139,7 @@ def main(argv: list[str] | None = None) -> int:
prompt_for_project=project_root is None,
defer_startup=True,
)
window.prepare_reader_before_show()
window.show()
logging.getLogger(__name__).info("Main window shown in %.3f s (after imports)", time.perf_counter() - startup_started)