add show notes instead of names

This commit is contained in:
Stanley Dimant
2023-04-20 11:06:53 +02:00
parent 5b52896243
commit 4c88e0e249
5 changed files with 24 additions and 3 deletions

View File

@@ -375,7 +375,7 @@ public class CompactUi : WindowMediatorSubscriberBase
var users = GetFilteredUsers()
.OrderBy(
u => _configService.Current.ShowCharacterNameInsteadOfNotesForVisible && !string.IsNullOrEmpty(u.PlayerName)
? u.PlayerName
? (_configService.Current.PreferNotesOverNamesForVisible ? u.GetNote() : u.PlayerName)
: (u.GetNote() ?? u.UserData.AliasOrUID), StringComparer.OrdinalIgnoreCase).ToList();
if (_configService.Current.ReverseUserSort)