1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

only titleize single word titles on action dialogs

This commit is contained in:
RaidMax
2022-10-25 14:03:35 -05:00
parent de94bf12bb
commit a2ccefd89d
3 changed files with 8 additions and 12 deletions

View File

@ -130,8 +130,8 @@ public class InteractionRegistration : IInteractionRegistration
return null;
}
private async Task<IEnumerable<IInteractionData>> GetInteractionsInternal(string prefix = null, int? clientId = null,
Reference.Game? game = null, CancellationToken token = default)
private async Task<IEnumerable<IInteractionData>> GetInteractionsInternal(string prefix = null,
int? clientId = null, Reference.Game? game = null, CancellationToken token = default)
{
var interactions = _interactions
.Where(interaction => string.IsNullOrWhiteSpace(prefix) || interaction.Key.StartsWith(prefix)).Select(
@ -149,9 +149,10 @@ public class InteractionRegistration : IInteractionRegistration
clientId);
return null;
}
}).Where(interaction => interaction is not null)
.ToList();
});
return await Task.WhenAll(interactions);
return (await Task.WhenAll(interactions))
.Where(interaction => interaction is not null)
.ToList();
}
}