Skip to content

Commit

Permalink
no filter for save
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlm committed Nov 25, 2024
1 parent 9437f05 commit 6d6c133
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/Consolonia.Core/Controls/FileSavePickerViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6d6c133

Please sign in to comment.