Compare commits

..

2 Commits

Author SHA1 Message Date
NimBold 4f177effc2 test(startup): isolate pure IPC startup command (#37)
- Issue #37: compare a pure dock-session IPC call with the logging bootstrap call.\n- Keep the renderer otherwise limited to a visible startup marker.\n\nRefs #37.
2026-08-27 21:57:47 +03:30
NimBold 21a3711bdb test(startup): isolate Windows window gate (#37)
- Issue #37: compare the logger IPC path with normal visible and focusable native startup.\n- Keep the pure logger read and minimal renderer control unchanged.
2026-08-27 21:37:01 +03:30
2 changed files with 6 additions and 25 deletions
+1 -13
View File
@@ -18553,17 +18553,6 @@ pub fn run() {
main_window_builder = main_window_builder
.inner_size(startup_size.width as f64, startup_size.height as f64)
.prevent_overflow();
#[cfg(target_os = "windows")]
{
// Wry installs its parent WM_SETFOCUS handler while WebView2
// is still being initialized. Keep the host hidden and
// non-activatable until RunEvent::Ready so Windows cannot
// re-enter that handler during native construction.
main_window_builder = main_window_builder
.visible(false)
.focused(false)
.focusable(false);
}
main_window_builder
.build()
.map_err(|error| format!("failed to create main window: {error}"))?;
@@ -19901,8 +19890,7 @@ pub fn run() {
.run(|app_handle, event| match event {
tauri::RunEvent::Ready => {
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")]
+5 -12
View File
@@ -1,15 +1,8 @@
import { invoke } from "@tauri-apps/api/core";
void invoke<number>("begin_dock_badge_session");
const rootElement = document.getElementById("root");
if (rootElement) rootElement.textContent = "Firelink startup control";
const documentLoaded = new Promise<void>((resolve) => {
const releaseAfterNativeLoad = () => window.setTimeout(resolve, 0);
if (document.readyState === "complete") releaseAfterNativeLoad();
else window.addEventListener("load", releaseAfterNativeLoad, { once: true });
});
void documentLoaded.then(async () => {
await invoke<boolean>("is_log_paused");
if (rootElement) rootElement.textContent = "Firelink post-load log read";
});
if (rootElement) {
rootElement.textContent = "Firelink startup control";
}