(window: tauri::Window<R>)
| 9 | #[cfg(not(target_os = "macos"))] |
| 10 | #[command] |
| 11 | pub 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] |
nothing calls this directly
no outgoing calls
no test coverage detected