From 91264a53835d804a190250f1f731b25b2f735fa5 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 50575648dc..7309c6c58e 100644 --- a/Source/Editor/Windows/EditorOptionsWindow.cs +++ b/Source/Editor/Windows/EditorOptionsWindow.cs @@ -217,6 +217,18 @@ public override void OnDestroy() 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) {