소스 검색

cleanup closed embedded processes on macos

Adam Johnston 2 달 전
부모
커밋
a3f8a067a9
2개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 1
      platform/macos/editor/embedded_process_macos.h
  2. 1 1
      platform/macos/editor/embedded_process_macos.mm

+ 0 - 1
platform/macos/editor/embedded_process_macos.h

@@ -62,7 +62,6 @@ class EmbeddedProcessMacOS final : public EmbeddedProcessBase {
 		IN_PROGRESS,
 		COMPLETED,
 		FAILED,
-		CLOSED,
 	};
 
 	DisplayServerMacOS *ds = nullptr;

+ 1 - 1
platform/macos/editor/embedded_process_macos.mm

@@ -128,7 +128,7 @@ void EmbeddedProcessMacOS::request_close() {
 	if (current_process_id != 0 && is_embedding_completed()) {
 		script_debugger->send_message("embed:win_event", { DisplayServer::WINDOW_EVENT_CLOSE_REQUEST });
 	}
-	embedding_state = EmbeddingState::CLOSED;
+	reset();
 }
 
 void EmbeddedProcessMacOS::display_state_changed() {