From e8c9cd6cc847be109e60c4557af01722a9eb3e7a Mon Sep 17 00:00:00 2001 From: Tom Laird-McConnell Date: Mon, 25 Nov 2024 00:43:13 -0600 Subject: [PATCH] hmmm --- src/Consolonia.Core/Controls/FileSavePickerViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Consolonia.Core/Controls/FileSavePickerViewModel.cs b/src/Consolonia.Core/Controls/FileSavePickerViewModel.cs index e3cdc31..a6bdd04 100644 --- a/src/Consolonia.Core/Controls/FileSavePickerViewModel.cs +++ b/src/Consolonia.Core/Controls/FileSavePickerViewModel.cs @@ -24,7 +24,7 @@ protected override bool FilterItem(IStorageItem item) if (item is IStorageFolder) return true; if (item is IStorageFile file) { - if (SelectedFileType?.Patterns == null || SelectedFileType.Patterns.Count == 0) + if (SelectedFileType == null || SelectedFileType.Patterns == null || SelectedFileType.Patterns.Count == 0) return true; foreach (string pattern in SelectedFileType.Patterns)