fix: count strings correctly

This commit is contained in:
Anna 2021-05-12 18:47:39 -04:00
parent 5b82018b75
commit 8186eaf5d6
Signed by: anna
GPG Key ID: 0B391D8F06FCD9E0

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;