mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-11 21:31:29 +11:00
Fix inverted parameter in set_prefers_home_indicator_hidden
on iOS (#1123)
This commit is contained in:
parent
f53683f01f
commit
dd99b3bd73
|
@ -1,6 +1,7 @@
|
||||||
# Unreleased
|
# Unreleased
|
||||||
|
|
||||||
- On macOS, implement `run_return`.
|
- On macOS, implement `run_return`.
|
||||||
|
- On iOS, fix inverted parameter in `set_prefers_home_indicator_hidden`.
|
||||||
|
|
||||||
# 0.20.0 Alpha 3 (2019-08-14)
|
# 0.20.0 Alpha 3 (2019-08-14)
|
||||||
|
|
||||||
|
|
|
@ -398,7 +398,7 @@ impl Inner {
|
||||||
|
|
||||||
pub fn set_prefers_home_indicator_hidden(&self, hidden: bool) {
|
pub fn set_prefers_home_indicator_hidden(&self, hidden: bool) {
|
||||||
unsafe {
|
unsafe {
|
||||||
let prefers_home_indicator_hidden = if hidden { NO } else { YES };
|
let prefers_home_indicator_hidden = if hidden { YES } else { NO };
|
||||||
let () = msg_send![
|
let () = msg_send![
|
||||||
self.view_controller,
|
self.view_controller,
|
||||||
setPrefersHomeIndicatorAutoHidden: prefers_home_indicator_hidden
|
setPrefersHomeIndicatorAutoHidden: prefers_home_indicator_hidden
|
||||||
|
|
Loading…
Reference in a new issue