mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Merge pull request #107850 from beicause/Fix-Resource-doesn't-update-when-overwritten-in-editor
Fix Resource doesn't update when overwritten in editor
This commit is contained in:
commit
639c41d086
2 changed files with 11 additions and 6 deletions
|
|
@ -525,15 +525,14 @@ void QuickOpenResultContainer::_use_default_candidates() {
|
|||
if (history) {
|
||||
candidates.append_array(*history);
|
||||
}
|
||||
int count = candidates.size();
|
||||
candidates.resize(MIN(max_total_results, filepaths.size()));
|
||||
int count = candidates.size();
|
||||
int i = 0;
|
||||
for (const String &filepath : filepaths) {
|
||||
if (count >= max_total_results) {
|
||||
if (i >= count) {
|
||||
break;
|
||||
}
|
||||
if (!history || !history_set.has(filepath)) {
|
||||
_setup_candidate(candidates.write[count++], filepath);
|
||||
}
|
||||
_setup_candidate(candidates.write[i++], filepath);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue