fix(window): declare the detach fullscreen flag only on macOS

It is read only in macOS code, so Linux and Windows builds failed on an unused variable.
This commit is contained in:
l0ng-ai
2026-11-04 16:57:28 +08:00
parent 2d3b7ebf54
commit d20be9c5cc
+1
View File
@@ -202,6 +202,7 @@ pub fn detach(app: &AppHandle, caller: &str) -> IdeResult<()> {
let next = state.groups.lock().detach(caller);
if let Some(next) = next {
// The tab that stays keeps the fullscreen; the detached window opens beside it.
#[cfg(target_os = "macos")]
let simple = simple_fullscreen(caller);
if let Some(window) = app.get_webview_window(&next) {
#[cfg(target_os = "macos")]