浏览代码

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,
 		IN_PROGRESS,
 		COMPLETED,
 		COMPLETED,
 		FAILED,
 		FAILED,
-		CLOSED,
 	};
 	};
 
 
 	DisplayServerMacOS *ds = nullptr;
 	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()) {
 	if (current_process_id != 0 && is_embedding_completed()) {
 		script_debugger->send_message("embed:win_event", { DisplayServer::WINDOW_EVENT_CLOSE_REQUEST });
 		script_debugger->send_message("embed:win_event", { DisplayServer::WINDOW_EVENT_CLOSE_REQUEST });
 	}
 	}
-	embedding_state = EmbeddingState::CLOSED;
+	reset();
 }
 }
 
 
 void EmbeddedProcessMacOS::display_state_changed() {
 void EmbeddedProcessMacOS::display_state_changed() {