fix: ios buillds
This commit is contained in:
1 parent
ab878c17c7
commit
e8133e9449
1 file changed
+2
-2
@@ -281,7 +281,7 @@ impl DesktopController {
|
|||||||
|
|
||||||
let ui_view_controller = window.ui_view_controller() as *mut Object;
|
let ui_view_controller = window.ui_view_controller() as *mut Object;
|
||||||
let _: () = msg_send![ui_view_controller, setView: view];
|
let _: () = msg_send![ui_view_controller, setView: view];
|
||||||
desktop.views.push(ui_view);
|
self.views.push(ui_view);
|
||||||
},
|
},
|
||||||
|
|
||||||
#[cfg(target_os = "ios")]
|
#[cfg(target_os = "ios")]
|
||||||
@@ -289,7 +289,7 @@ impl DesktopController {
|
|||||||
use objc::runtime::Object;
|
use objc::runtime::Object;
|
||||||
use objc::*;
|
use objc::*;
|
||||||
assert!(is_main_thread());
|
assert!(is_main_thread());
|
||||||
if let Some(view) = desktop.views.pop() {
|
if let Some(view) = self.views.pop() {
|
||||||
let ui_view_controller = window.ui_view_controller() as *mut Object;
|
let ui_view_controller = window.ui_view_controller() as *mut Object;
|
||||||
let _: () = msg_send![ui_view_controller, setView: view];
|
let _: () = msg_send![ui_view_controller, setView: view];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user