We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a66489 commit 009475bCopy full SHA for 009475b
SoundSwitch/Framework/Profile/Hotkey/ProfileHotkeyManager.cs
@@ -17,7 +17,7 @@ private record HotKeysSelection(HashSet<Profile> Profiles)
17
18
internal bool HasOnlyOne => Profiles.Count == 1;
19
20
- public Profile NextOne() => Profiles.FirstOrDefault(profile => profile != LastUsed) ?? Profiles.Last();
+ public Profile NextOne() => Profiles.SkipWhile(profile => profile != LastUsed).Skip(1).FirstOrDefault() ?? Profiles.First();
21
};
22
23
private class HotKeyItem : IconMenuItem<Profile>.DataContainer
0 commit comments