summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorPedro J. Estébanez <pedrojrulez@gmail.com>2023-02-07 21:14:00 +0100
committerPedro J. Estébanez <pedrojrulez@gmail.com>2023-04-13 12:16:47 +0200
commitf5602869da29bf295490956b3c5cae10218064c2 (patch)
tree1b80db0681ecda47d3ddd9d0720985771728f8dd /main
parent68b8156fe3075e0e45b070d26fce2a0baae6f293 (diff)
downloadredot-engine-f5602869da29bf295490956b3c5cae10218064c2.tar.gz
Cache classes editor help
Diffstat (limited to 'main')
-rw-r--r--main/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp
index fbd0b75e58..3619815825 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -89,6 +89,7 @@
#include "editor/debugger/editor_debugger_node.h"
#include "editor/doc_data_class_path.gen.h"
#include "editor/doc_tools.h"
+#include "editor/editor_help.h"
#include "editor/editor_node.h"
#include "editor/editor_paths.h"
#include "editor/editor_settings.h"
@@ -2576,6 +2577,11 @@ bool Main::start() {
err = doc.save_classes(index_path, doc_data_classes);
ERR_FAIL_COND_V_MSG(err != OK, false, "Error saving new docs:" + itos(err));
+ print_line("Deleting docs cache...");
+ if (FileAccess::exists(EditorHelp::get_cache_full_path())) {
+ DirAccess::remove_file_or_error(EditorHelp::get_cache_full_path());
+ }
+
OS::get_singleton()->set_exit_code(EXIT_SUCCESS);
return false;
}