fix: render window controls on unsupported targets

This commit is contained in:
2026-11-10 20:54:14 +07:00
parent 0859e27290
commit 0192c50157
+10
View File
@@ -148,6 +148,12 @@ impl RenderOnce for WindowControls {
}) })
}; };
#[cfg(not(any(target_os = "macos", target_os = "windows", target_os = "linux")))]
let controls = {
let _ = (id, window, cx);
div()
};
controls controls
} }
} }
@@ -167,6 +173,10 @@ fn maximize_on_double_click() -> impl Fn(&ClickEvent, &mut Window, &mut App) + '
{ {
let _ = (event, window); let _ = (event, window);
} }
#[cfg(not(any(target_os = "macos", target_os = "linux", target_os = "windows")))]
{
let _ = (event, window);
}
} }
} }