diff --git a/src/Consolonia.Core/Controls/FileSavePickerViewModel.cs b/src/Consolonia.Core/Controls/FileSavePickerViewModel.cs index 44a27d57..0e1add2a 100644 --- a/src/Consolonia.Core/Controls/FileSavePickerViewModel.cs +++ b/src/Consolonia.Core/Controls/FileSavePickerViewModel.cs @@ -21,18 +21,18 @@ public FileSavePickerViewModel(FilePickerSaveOptions options) protected override bool FilterItem(IStorageItem item) { - if (item is IStorageFolder) return true; - if (item is IStorageFile file) - { - // ReSharper disable ConstantConditionalAccessQualifier - if (SelectedFileType == null) - return true; + //if (item is IStorageFolder) return true; + //if (item is IStorageFile file) + //{ + // // ReSharper disable ConstantConditionalAccessQualifier + // if (SelectedFileType == null) + // return true; - foreach (string pattern in SelectedFileType.Patterns) - if (file.Path.LocalPath.EndsWith(pattern.TrimStart('*'), StringComparison.OrdinalIgnoreCase)) - return true; - return false; - } + // foreach (string pattern in SelectedFileType.Patterns) + // if (file.Path.LocalPath.EndsWith(pattern.TrimStart('*'), StringComparison.OrdinalIgnoreCase)) + // return true; + // return false; + //} return true; }