1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Protection against single-file ctrl+tab

This commit is contained in:
Brian Fiete 2020-09-14 15:15:40 -07:00
parent 7dc9fb699c
commit 4713f5528b

View file

@ -79,7 +79,7 @@ namespace IDE.ui
if (!hadActiveDocument)
mMenuWidget.SetSelection(0);
else
mMenuWidget.SetSelection(1);
mMenuWidget.SetSelection(Math.Min(1, menu.mItems.Count - 1));
}
public void Next()