INNER CODE UNIT · Rust
Err
zevnda/steam-game-idler · src-tauri/src/lib.rs:295
if let Err(err) = window.show() {
tracing::warn!(?err, "setup_window: failed to show main window immediately");
}
if let Err(err) = window.set_focus() {
tracing::warn!(?err, "setup_window: failed to focus main window immediately");
}
}
return Ok(());
}
let window_for_ready = window.clone();
window.once("ready", move |_| {
if !should_start_minimized {
if let Err(err) = window_for_ready.show() {
tracing::warn!(?err, "setup_window: failed to show main window on ready");
}
if let Err(err) = window_for_ready.set_focus() {
tracing::warn!(?err, "setup_window: failed to focus main window on ready");