From 1a80508d0f6b9ee80633d3ba8917e528a3699853 Mon Sep 17 00:00:00 2001 From: Mikael Hermansson Date: Fri, 6 Oct 2023 12:34:36 +0200 Subject: [PATCH] Remove I/O error popup when failing to load/unload extension --- editor/editor_file_system.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/editor/editor_file_system.cpp b/editor/editor_file_system.cpp index 41616d50cd33..db541796331a 100644 --- a/editor/editor_file_system.cpp +++ b/editor/editor_file_system.cpp @@ -2510,17 +2510,13 @@ bool EditorFileSystem::_scan_extensions() { bool needs_restart = false; for (int i = 0; i < extensions_added.size(); i++) { GDExtensionManager::LoadStatus st = GDExtensionManager::get_singleton()->load_extension(extensions_added[i]); - if (st == GDExtensionManager::LOAD_STATUS_FAILED) { - EditorNode::get_singleton()->add_io_error("Error loading extension: " + extensions_added[i]); - } else if (st == GDExtensionManager::LOAD_STATUS_NEEDS_RESTART) { + if (st == GDExtensionManager::LOAD_STATUS_NEEDS_RESTART) { needs_restart = true; } } for (int i = 0; i < extensions_removed.size(); i++) { GDExtensionManager::LoadStatus st = GDExtensionManager::get_singleton()->unload_extension(extensions_removed[i]); - if (st == GDExtensionManager::LOAD_STATUS_FAILED) { - EditorNode::get_singleton()->add_io_error("Error removing extension: " + extensions_added[i]); - } else if (st == GDExtensionManager::LOAD_STATUS_NEEDS_RESTART) { + if (st == GDExtensionManager::LOAD_STATUS_NEEDS_RESTART) { needs_restart = true; } }