소스 검색

fix: ios buillds

Jonathan Kelley 2 년 전
부모
커밋
e8133e9449
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      packages/desktop/src/desktop_context.rs

+ 2 - 2
packages/desktop/src/desktop_context.rs

@@ -281,7 +281,7 @@ impl DesktopController {
 
                 let ui_view_controller = window.ui_view_controller() as *mut Object;
                 let _: () = msg_send![ui_view_controller, setView: view];
-                desktop.views.push(ui_view);
+                self.views.push(ui_view);
             },
 
             #[cfg(target_os = "ios")]
@@ -289,7 +289,7 @@ impl DesktopController {
                 use objc::runtime::Object;
                 use objc::*;
                 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 _: () = msg_send![ui_view_controller, setView: view];
                 }