fix(startup): gate renderer IPC on document load (#37)

- Issue #37: Windows 1.4.0 exited with STATUS_STACK_OVERFLOW before showing the main window.
- Gate lazy entrypoint imports, Zustand persistence, logger initialization, and console forwarding until WebView2 document load.
- Preserve the native Ready reveal and pending-window restore lifecycle across platforms.
- Show a closeable startup error if the main entrypoint cannot load.

Fixes #37.
This commit is contained in:
NimBold
2026-08-27 22:26:53 +03:30
parent 8d1cde8d2c
commit 97f15dee37
2 changed files with 52 additions and 10 deletions
-1
View File
@@ -19903,7 +19903,6 @@ pub fn run() {
mark_main_window_startup_complete(app_handle);
#[cfg(target_os = "windows")]
reveal_main_window(app_handle);
#[cfg(not(target_os = "windows"))]
restore_pending_main_window(app_handle);
}
#[cfg(target_os = "macos")]