mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-06 08:07:49 +00:00
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:
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user