1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-10-30 23:16:09 +00:00

Correctif alignement tous

This commit is contained in:
Yan Maniez 2019-04-10 02:20:20 +02:00
parent 7fea933afb
commit 5438c66ebb

View file

@ -121,7 +121,7 @@ namespace AideDeJeu.ViewModels
var regex = new Regex(".*\\((?<alignment>.*?)\\)$"); var regex = new Regex(".*\\((?<alignment>.*?)\\)$");
var match = regex.Match(SelectedPlayerCharacter.PersonalityIdeal); var match = regex.Match(SelectedPlayerCharacter.PersonalityIdeal);
var alignment = match.Groups["alignment"].Value; var alignment = match.Groups["alignment"].Value;
if (!string.IsNullOrEmpty(alignment)) if (!string.IsNullOrEmpty(alignment) && alignment.ToLower() != "tous")
{ {
Alignments = new NotifyTaskCompletion<List<AlignmentItem>>(Task.Run(() => LoadAlignmentsAsync(alignment))); Alignments = new NotifyTaskCompletion<List<AlignmentItem>>(Task.Run(() => LoadAlignmentsAsync(alignment)));
SelectedPlayerCharacter.Alignment = null; SelectedPlayerCharacter.Alignment = null;