Fix editor_doc_cache locked on editor startup

(cherry picked from commit e064efccbc)
This commit is contained in:
Hilderin 2024-09-14 09:37:04 -04:00 committed by Rémi Verschelde
parent a2e3c13451
commit 7246e1488e
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 3 additions and 1 deletions

View File

@ -290,7 +290,9 @@ void EditorExportPlatformAndroid::_check_for_changes_poll_thread(void *ud) {
// Check for devices updates // Check for devices updates
String adb = get_adb_path(); String adb = get_adb_path();
if (ea->has_runnable_preset.is_set() && FileAccess::exists(adb)) { // adb.exe was locking the editor_doc_cache file on startup. Adding a check for is_editor_ready provides just enough time
// to regenerate the doc cache.
if (ea->has_runnable_preset.is_set() && FileAccess::exists(adb) && EditorNode::get_singleton()->is_editor_ready()) {
String devices; String devices;
List<String> args; List<String> args;
args.push_back("devices"); args.push_back("devices");