Skip to content

armgit / Pake

Public Imported from GitHub
0

Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.

fix: keep the Dock icon check from failing clippy off macOS

Tw93f7e1e7ee2dfd
diff --git a/src-tauri/src/app/config.rs b/src-tauri/src/app/config.rs
index 25d5baf5..e1bd2c0f 100644
--- a/src-tauri/src/app/config.rs
+++ b/src-tauri/src/app/config.rs
@@ -176,6 +176,7 @@ impl PakeConfig {
}
/// The Dock icon goes only when the menu bar icon is there to open the app.
+ #[cfg_attr(not(target_os = "macos"), allow(dead_code))]
pub fn hides_dock_icon(&self) -> bool {
self.windows[0].hide_dock_icon && self.show_system_tray()
}