INNER CODE UNIT · Rust

Some

zevnda/steam-game-idler · src-tauri/src/lib.rs:44

            if let Some(window) = app.get_webview_window("main") {
                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,
            );

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…