Skip to content

Commit 28e6171

Browse files
committed
Fix inverted settings
1 parent 6c6137f commit 28e6171

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Flow.Launcher.Plugin.OneNote/Search/SearchExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ public static IEnumerable<T> FilterBySettings<T>(this IEnumerable<T> source, Set
2424
foreach (var item in source)
2525
{
2626
var success = true;
27-
if (settings.ShowEncrypted && item is Section section)
27+
if (!settings.ShowEncrypted && item is Section section)
2828
{
2929
success = !section.Encrypted;
3030
}
3131

32-
if (settings.ShowRecycleBin && item.IsInRecycleBin())
32+
if (!settings.ShowRecycleBin && item.IsInRecycleBin())
3333
{
3434
success = false;
3535
}

0 commit comments

Comments
 (0)