Make Instant Preview work for first selection after being enabled
(cherry picked from commit 5f8ac5d96b88c326b223e3ad607e604e024cb3fa)
This commit is contained in:
1 parent
3a59aa2d35
commit
f8b185c1c5
1 file changed
+4
-5
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user