diff --git a/Source/Editor/GUI/Docking/FloatWindowDockPanel.cs b/Source/Editor/GUI/Docking/FloatWindowDockPanel.cs index 4c7fb19b7..1ba732d84 100644 --- a/Source/Editor/GUI/Docking/FloatWindowDockPanel.cs +++ b/Source/Editor/GUI/Docking/FloatWindowDockPanel.cs @@ -49,6 +49,7 @@ namespace FlaxEditor.GUI.Docking private MasterDockPanel _masterPanel; private WindowRootControl _window; + private bool _showDecorations; /// /// Gets the master panel. @@ -70,12 +71,12 @@ namespace FlaxEditor.GUI.Docking /// public bool ShowDecorations { - get => field; + get => _showDecorations; set { - if (value == field) + if (value == _showDecorations) return; - field = value; + _showDecorations = value; if (value) { var decorations = Parent.AddChild(new FloatWindowDecorations(this));