fix: count strings correctly

This commit is contained in:
Anna 2021-05-12 18:47:39 -04:00
parent cffcb4fad5
commit 15619d6d79
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ namespace SoundFilter.Ui {
this._soundPaths.Add(this._newSoundPath);
}
if (this._soundPaths.Count(sound => sound.Length > 0) > 0) {
if (this._soundPaths.Count(sound => !string.IsNullOrWhiteSpace(sound)) > 0) {
this.Save();
this._filterName = string.Empty;