Skip to content

Commit 165630d

Browse files
committed
Merge pull request godotengine#115029 from KoBeWi/enter_the_history
Fix quick open history not always recorded
2 parents b607447 + 1913cb6 commit 165630d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

editor/gui/editor_quick_open_dialog.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ void EditorQuickOpenDialog::_finish_dialog_setup(const Vector<StringName> &p_bas
189189
}
190190

191191
void EditorQuickOpenDialog::ok_pressed() {
192+
container->save_selected_item();
193+
192194
update_property();
193195
container->cleanup();
194196
search_box->clear();
@@ -216,15 +218,13 @@ void EditorQuickOpenDialog::selection_changed() {
216218
void EditorQuickOpenDialog::item_pressed(bool p_double_click) {
217219
// A double-click should always be taken as a "confirm" action.
218220
if (p_double_click) {
219-
container->save_selected_item();
220221
ok_pressed();
221222
return;
222223
}
223224

224225
// Single-clicks should be taken as a "confirm" action only if Instant Preview
225226
// isn't currently enabled, or the property object is null for some reason.
226227
if (!_is_instant_preview_active()) {
227-
container->save_selected_item();
228228
ok_pressed();
229229
}
230230
}

0 commit comments

Comments
 (0)