From 15619d6d790b99b464b33ff8e76898b5747bf474 Mon Sep 17 00:00:00 2001 From: Anna Date: Wed, 12 May 2021 18:47:39 -0400 Subject: [PATCH] fix: count strings correctly --- SoundFilter/Ui/AddFilter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoundFilter/Ui/AddFilter.cs b/SoundFilter/Ui/AddFilter.cs index e17cfb3..f21975b 100755 --- a/SoundFilter/Ui/AddFilter.cs +++ b/SoundFilter/Ui/AddFilter.cs @@ -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;