Skip to content

Commit 66b5ed3

Browse files
LanYun2022Copilot
andauthored
Update ContextMenuManager/BluePointLilac.Controls/MySideBar.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent cc26bc4 commit 66b5ed3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

ContextMenuManager/BluePointLilac.Controls/MySideBar.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,11 @@ private void SetSelectedIndexDirectly(int val)
123123
public void SmoothScrollTo(int idx) { if (idx >= 0 && idx < ItemNames?.Length) SelectedIndex = idx; }
124124
public int GetItemWidth(string str) => TextRenderer.MeasureText(str, Font).Width + 2 * HorizontalSpace;
125125
public void BeginUpdate() => SuspendLayout();
126-
public void EndUpdate() { ResumeLayout(true); UpdateBackground(); }
126+
public void EndUpdate()
127+
{
128+
ResumeLayout(true);
129+
UpdateBackground();
130+
}
127131

128132
private void UpdateBackground()
129133
{

0 commit comments

Comments
 (0)