INNER CODE UNIT · Rust
Err
zevnda/steam-game-idler · src-tauri/src/lib.rs:45
if let Err(e) = window.show() {
tracing::warn!(error = %e, "single-instance: failed to show main window");
}
if let Err(e) = window.set_focus() {
tracing::warn!(error = %e, "single-instance: failed to focus main window");
}
}
}))
.plugin({
let mut builder = tauri_plugin_window_state::Builder::new().with_state_flags(
StateFlags::SIZE
| StateFlags::POSITION
| StateFlags::MAXIMIZED
| StateFlags::DECORATIONS
| StateFlags::FULLSCREEN,
);
// Portable builds store window position/size next to the binary instead of AppData,