From ca1aa89ba1d6cf48381bbc0969a555a00fa1eaa2 Mon Sep 17 00:00:00 2001 From: Ari Vuollet Date: Sun, 10 Mar 2024 16:42:12 +0200 Subject: [PATCH] Update Editor options when window is shown --- Source/Editor/Windows/EditorOptionsWindow.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Source/Editor/Windows/EditorOptionsWindow.cs b/Source/Editor/Windows/EditorOptionsWindow.cs index c8a5338e7..17314f164 100644 --- a/Source/Editor/Windows/EditorOptionsWindow.cs +++ b/Source/Editor/Windows/EditorOptionsWindow.cs @@ -234,6 +234,18 @@ namespace FlaxEditor.Windows base.OnDestroy(); } + /// + protected override void OnShow() + { + if (!_isDataDirty) + { + // Refresh the data, skip when data is modified during window docking + GatherData(); + } + + base.OnShow(); + } + /// protected override bool OnClosing(ClosingReason reason) {