mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 06:03:09 +00:00
Fix editor_doc_cache locked on editor startup
This commit is contained in:
parent
6681f2563b
commit
e064efccbc
@ -294,7 +294,9 @@ void EditorExportPlatformAndroid::_check_for_changes_poll_thread(void *ud) {
|
||||
|
||||
// Check for devices updates
|
||||
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;
|
||||
List<String> args;
|
||||
args.push_back("devices");
|
||||
|
Loading…
Reference in New Issue
Block a user