Skip to content

Commit

Permalink
Remove I/O error popup when failing to load/unload extension
Browse files Browse the repository at this point in the history
  • Loading branch information
mihe committed Oct 6, 2023
1 parent fba341c commit 1a80508
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions editor/editor_file_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 1a80508

Please sign in to comment.