Fix floating dock window title to update when selected tab gets changed

#2800
This commit is contained in:
Wojtek Figat
2026-02-11 23:32:53 +01:00
parent 15f379e87f
commit 4ddbc8ba5c

View File

@@ -213,7 +213,12 @@ namespace FlaxEditor.GUI.Docking
base.OnSelectedTabChanged();
if (_window != null && SelectedTab != null)
{
_window.Title = SelectedTab.Title;
var decorations = Parent.GetChild<FloatWindowDecorations>();
if (decorations != null)
decorations.PerformLayout();
}
}
/// <inheritdoc />