fix: render window controls on unsupported targets
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -167,6 +173,10 @@ fn maximize_on_double_click() -> impl Fn(&ClickEvent, &mut Window, &mut App) + '
|
||||
{
|
||||
let _ = (event, window);
|
||||
}
|
||||
#[cfg(not(any(target_os = "macos", target_os = "linux", target_os = "windows")))]
|
||||
{
|
||||
let _ = (event, window);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user