fix(popout): guard against mid-frame unbind when closing from the header

This commit is contained in:
2026-05-29 13:29:29 +02:00
parent db47708264
commit a9e70ce2af
@@ -82,6 +82,12 @@ internal sealed class ChannelPopoutWindow : Window
DrawHeader(Bound); DrawHeader(Bound);
// The header close button can unbind us mid-frame (CloseRequested ->
// pool.TryClose -> Unbind nulls Bound). Re-check before the body so we
// never hand a null tab to MessageList/InputBar in this same Draw call.
if (Bound is null)
return;
var inputHeight = InputBar.Height; var inputHeight = InputBar.Height;
using ( using (
var body = ImRaii.Child( var body = ImRaii.Child(