From f8b185c1c5fa343eefe64d4ad5d96a797deedb5d Mon Sep 17 00:00:00 2001 From: Malcolm Anderson Date: Sun, 22 Feb 2026 22:20:36 -0800 Subject: [PATCH] Make Instant Preview work for first selection after being enabled (cherry picked from commit 5f8ac5d96b88c326b223e3ad607e604e024cb3fa) --- editor/gui/editor_quick_open_dialog.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/editor/gui/editor_quick_open_dialog.cpp b/editor/gui/editor_quick_open_dialog.cpp index 24e8f7915d..c93a45b0bb 100644 --- a/editor/gui/editor_quick_open_dialog.cpp +++ b/editor/gui/editor_quick_open_dialog.cpp @@ -209,15 +209,14 @@ bool EditorQuickOpenDialog::_is_instant_preview_active() const { } void EditorQuickOpenDialog::selection_changed() { - if (!_is_instant_preview_active()) { - return; - } - // This prevents the property from being changed the first time the Quick Open // window is opened. if (!initial_selection_performed) { initial_selection_performed = true; - } else { + return; + } + + if (_is_instant_preview_active()) { preview_property(); } }