Make Instant Preview work for first selection after being enabled

(cherry picked from commit 5f8ac5d96b88c326b223e3ad607e604e024cb3fa)
This commit is contained in:
Malcolm Anderson authored and Thaddeus Crews committed 2026-07-04 11:03:32 -05:00
1 parent 3a59aa2d35
commit f8b185c1c5
1 file changed
+4 -5
+4 -5
View File
@@ -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();
}
}