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
@@ -126,6 +126,7 @@ def test_switching_projects_discards_old_scan(gui, tmp_path, monkeypatch):
monkeypatch.setattr(startup_scan, "discover_documents", slow_scan)
window = main_window.MainWindow(old_root, defer_startup=True)
try:
window.show()
wait_until(gui, entered.is_set)
window.set_project_root(new_root, save=False)
release.set()