You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fix/remove error about "Can't update documentation" when saving script
This commit is contained in:
@@ -1768,13 +1768,13 @@ void EditorFileSystem::_notification(int p_what) {
|
|||||||
// Set first_scan to false before the signals so the function doing_first_scan can return false
|
// Set first_scan to false before the signals so the function doing_first_scan can return false
|
||||||
// in editor_node to start the export if needed.
|
// in editor_node to start the export if needed.
|
||||||
first_scan = false;
|
first_scan = false;
|
||||||
|
scanning_changes = false;
|
||||||
|
done_importing = true;
|
||||||
ResourceImporter::load_on_startup = nullptr;
|
ResourceImporter::load_on_startup = nullptr;
|
||||||
if (changed) {
|
if (changed) {
|
||||||
emit_signal(SNAME("filesystem_changed"));
|
emit_signal(SNAME("filesystem_changed"));
|
||||||
}
|
}
|
||||||
emit_signal(SNAME("sources_changed"), sources_changed.size() > 0);
|
emit_signal(SNAME("sources_changed"), sources_changed.size() > 0);
|
||||||
scanning_changes = false; // Changed to false here to prevent recursive triggering of scan thread.
|
|
||||||
done_importing = true;
|
|
||||||
}
|
}
|
||||||
} else if (!scanning && thread.is_started()) {
|
} else if (!scanning && thread.is_started()) {
|
||||||
set_process(false);
|
set_process(false);
|
||||||
|
|||||||
@@ -3783,8 +3783,6 @@ bool ScriptEditor::_help_tab_goto(const String &p_name, const String &p_desc) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ScriptEditor::update_doc(const String &p_name) {
|
void ScriptEditor::update_doc(const String &p_name) {
|
||||||
ERR_FAIL_COND_MSG(!EditorHelp::has_doc(p_name), vformat("Can't update documentation for \"%s\".", p_name));
|
|
||||||
|
|
||||||
for (int i = 0; i < tab_container->get_tab_count(); i++) {
|
for (int i = 0; i < tab_container->get_tab_count(); i++) {
|
||||||
EditorHelp *eh = Object::cast_to<EditorHelp>(tab_container->get_tab_control(i));
|
EditorHelp *eh = Object::cast_to<EditorHelp>(tab_container->get_tab_control(i));
|
||||||
if (eh && eh->get_class() == p_name) {
|
if (eh && eh->get_class() == p_name) {
|
||||||
|
|||||||
Reference in New Issue
Block a user