We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfd5e63 commit ca9d52dCopy full SHA for ca9d52d
1 file changed
src-tauri/src/setup/mac.rs
@@ -1,4 +1,4 @@
1
-use tauri::AppHandle;
+use tauri::{AppHandle, Manager};
2
3
pub fn setup_mac(app: &AppHandle) -> tauri::Result<()> {
4
#[cfg(target_os = "macos")]
@@ -7,6 +7,11 @@ pub fn setup_mac(app: &AppHandle) -> tauri::Result<()> {
7
// don't show on the taskbar/springboard
8
app.set_activation_policy(tauri::ActivationPolicy::Accessory)?;
9
}
10
+
11
+ if let Some(window) = app.get_webview_window("main") {
12
+ // Hide the title near the traffic light controls on macOS
13
+ let _ = window.set_title("");
14
+ }
15
16
17
#[cfg(not(target_os = "macos"))]
0 commit comments