Compare commits

..

1 Commits

Author SHA1 Message Date
NimBold 09a5852939 test(startup): isolate Windows startup reveal (#37) 2026-08-27 20:24:53 +03:30
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ const child = spawn(executable, [], {
env: {
...process.env,
FIRELINK_SMOKE_TEST: '1',
FIRELINK_SKIP_MAIN_WINDOW: '1',
FIRELINK_SKIP_STARTUP_REVEAL: '1',
WEBKIT_DISABLE_COMPOSITING_MODE: '1',
GDK_BACKEND: 'x11',
},
+6 -6
View File
@@ -18561,11 +18561,9 @@ pub fn run() {
.focused(false)
.focusable(false);
}
if std::env::var_os("FIRELINK_SKIP_MAIN_WINDOW").is_none() {
main_window_builder
.build()
.map_err(|error| format!("failed to create main window: {error}"))?;
}
main_window_builder
.build()
.map_err(|error| format!("failed to create main window: {error}"))?;
restore_pending_main_window(app.handle());
#[cfg(any(target_os = "windows", target_os = "linux"))]
@@ -19901,7 +19899,9 @@ pub fn run() {
tauri::RunEvent::Ready => {
mark_main_window_startup_complete(app_handle);
#[cfg(target_os = "windows")]
reveal_main_window(app_handle);
if std::env::var_os("FIRELINK_SKIP_STARTUP_REVEAL").is_none() {
reveal_main_window(app_handle);
}
#[cfg(not(target_os = "windows"))]
restore_pending_main_window(app_handle);
}