Misc Fixes (#2584)

* Disable default logging, remove log message

* Add IDtrBarEntry.MinimumWidth

* Fix Addon/Agent Lifecycle Register/Unregister

* Rename Agent.ReceiveEvent2

* Add to IReadOnlyDtrBarEntry

* Fix autoformat being terrible

* More style fixes

* Add focused changed lifecycle event

* Fix for obsolete renames
This commit is contained in:
MidoriKami 2026-01-27 13:49:35 -08:00 committed by GitHub
parent e598013e30
commit 5c7a5295d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 245 additions and 91 deletions

View file

@ -397,7 +397,15 @@ internal sealed unsafe class DtrBar : IInternalDisposableService, IDtrBar
ushort w = 0, h = 0;
node->GetTextDrawSize(&w, &h, node->NodeText.StringPtr);
node->SetWidth(w);
if (data.MinimumWidth > 0)
{
node->SetWidth(Math.Max(data.MinimumWidth, w));
}
else
{
node->SetWidth(w);
}
}
var elementWidth = data.TextNode->Width + this.configuration.DtrSpacing;