Skip to content

Commit

Permalink
Fix enumeration
Browse files Browse the repository at this point in the history
  • Loading branch information
brondavies committed Nov 27, 2024
1 parent d505163 commit 268e04a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/TrayToolbar/SettingsForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,9 @@ private void SetupLeftClickMenu(MenuItemCollection menu)
}
LeftClickMenu.Renderer = new MenuRenderer();
LeftClickMenu.Items.Clear();
LeftClickMenu.Items.AddRange([.. menu]);
#pragma warning disable IDE0305 // Simplify collection initialization
LeftClickMenu.Items.AddRange(menu.ToArray());
#pragma warning restore IDE0305
menu.NeedsRefresh = false;
}

Expand Down

0 comments on commit 268e04a

Please sign in to comment.