Skip to content

Commit 6378a63

Browse files
committed
Fix #132: Missing/empty neutral resources aren't shown if "show only warnings" is enabled
1 parent 7f8b946 commit 6378a63

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ResXManager.View/Behaviors/ShowErrorsOnlyBehavior.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,7 @@ private void UpdateErrorsOnlyFilter(bool isEnabled)
146146
var neutralCulture = entry.NeutralLanguage.CultureKey;
147147

148148
var hasInvariantMismatches = visibleLanguages
149-
.Where(lang => neutralCulture != lang)
150-
.Select(lang => new { Value = entry.Values.GetValue(lang), IsInvariant = entry.IsItemInvariant.GetValue(lang) || entry.IsInvariant })
149+
.Select(lang => new { Value = entry.Values.GetValue(lang), IsInvariant = (neutralCulture != lang) && (entry.IsItemInvariant.GetValue(lang) || entry.IsInvariant) })
151150
.Any(v => v.IsInvariant != string.IsNullOrEmpty(v.Value));
152151

153152
return entry.IsDuplicateKey

0 commit comments

Comments
 (0)