1 parent 9f720f7 commit 9c55448Copy full SHA for 9c55448
1 file changed
packages/tauri/src-tauri/src/lib.rs
@@ -157,13 +157,18 @@ pub async fn run() {
157
None
158
};
159
160
- WebviewWindow::builder(&app, "main", WebviewUrl::App("/".into()))
161
- .title("OpenCode")
162
- .inner_size(800.0, 600.0)
163
- .decorations(true)
164
- .hidden_title(true)
165
- .build()
166
- .expect("Failed to create window");
+ let mut window_builder =
+ WebviewWindow::builder(&app, "main", WebviewUrl::App("/".into()))
+ .title("OpenCode")
+ .inner_size(800.0, 600.0)
+ .decorations(true);
+
+ #[cfg(target_os = "macos")]
167
+ {
168
+ window_builder = window_builder.hidden_title(true);
169
+ }
170
171
+ window_builder.build().expect("Failed to create window");
172
173
app.manage(ServerState(Arc::new(Mutex::new(child))));
174
});
0 commit comments