Skip to content

Commit

Permalink
Update Editor options when window is shown
Browse files Browse the repository at this point in the history
  • Loading branch information
GoaLitiuM committed Mar 20, 2024
1 parent 24597fd commit 91264a5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Source/Editor/Windows/EditorOptionsWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,18 @@ public override void OnDestroy()
base.OnDestroy();
}

/// <inheritdoc />
protected override void OnShow()
{
if (!_isDataDirty)
{
// Refresh the data, skip when data is modified during window docking
GatherData();
}

base.OnShow();
}

/// <inheritdoc />
protected override bool OnClosing(ClosingReason reason)
{
Expand Down

0 comments on commit 91264a5

Please sign in to comment.