MCPcopy Create free account
hub / github.com/codename-co/stack / toggle

Function toggle

packages/app/src-tauri/src/menu_plugin.rs:11–17  ·  view source on GitHub ↗
(window: tauri::Window<R>)

Source from the content-addressed store, hash-verified

9#[cfg(not(target_os = "macos"))]
10#[command]
11pub fn toggle<R: tauri::Runtime>(window: tauri::Window<R>) {
12 if window.is_menu_visible().unwrap_or_default() {
13 let _ = window.hide_menu();
14 } else {
15 let _ = window.show_menu();
16 }
17}
18
19#[cfg(target_os = "macos")]
20#[command]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected