Преглед изворни кода

Merge pull request #107917 from a-johnston/cleanup_embedded_process_macos

Cleanup closed embedded processes on macOS
Thaddeus Crews пре 2 месеци
родитељ
комит
a6fda593ef

+ 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() {