Skip to content

Commit

Permalink
boost(profile): Order by alphabetical when showing profile in the sys…
Browse files Browse the repository at this point in the history
…tray menu
  • Loading branch information
Belphemur authored Dec 22, 2023
1 parent 94243de commit 58bec3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SoundSwitch/Framework/Profile/UI/ProfileTrayIconBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public IEnumerable<ToolStripMenuItem> GetMenuItems()
{
return (ProfileManager?.Profiles ?? new Profile[0])
.Where(profile => profile.Triggers.Any(trigger => trigger.Type == TriggerFactory.Enum.TrayMenu))
.OrderBy(profile => profile.Name)
.Select(BuildMenuItem);
}

Expand Down Expand Up @@ -65,4 +66,4 @@ private ProfileToolStripMenuItem BuildMenuItem(Profile profile)
return new ProfileToolStripMenuItem(profile, image, profileClicked => ProfileManager.SwitchAudio(profileClicked));
}
}
}
}

0 comments on commit 58bec3f

Please sign in to comment.