MCPcopy Create free account
hub / github.com/GCWing/BitFun / show_main_window

Function show_main_window

src/apps/desktop/src/tray.rs:277–286  ·  view source on GitHub ↗
(app: &tauri::AppHandle)

Source from the content-addressed store, hash-verified

275}
276
277pub fn show_main_window(app: &tauri::AppHandle) {
278 if let Some(window) = app.get_webview_window("main") {
279 let _ = window.show();
280 let _ = window.unminimize();
281 let _ = window.set_focus();
282 log::info!("Main window shown via tray");
283 } else {
284 log::warn!("Tray: show_main_window called but main window not found");
285 }
286}
287
288fn toggle_main_window(app: &tauri::AppHandle) {
289 if let Some(window) = app.get_webview_window("main") {

Callers 1

setup_trayFunction · 0.70

Calls 1

showMethod · 0.45

Tested by

no test coverage detected