Skip to content

Commit

Permalink
Fix page order issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jie65535 committed Jan 13, 2025
1 parent 3b2bfbb commit 8b760e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/GrasscutterTools/Forms/FormMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ public void UpdatePagesNav()
foreach (var pageOrder in tabOrders)
{
// 新增页面优先显示
if (tabOrders.All(it => it.Item1 != pageKeys[i]))
if (i < pageKeys.Count && tabOrders.All(it => it.Item1 != pageKeys[i]))
{
PageTabOrders.Add(new Tuple<string, bool>(pageKeys[i], true));
ListPages.Items.Add(Pages[pageKeys[i]].Text);
Expand Down

0 comments on commit 8b760e5

Please sign in to comment.