mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[GUI] Simplify FileTypeChoices assignment in SaveFilePickerAsync method in CompactDiscInfoViewModel
This commit is contained in:
@@ -132,10 +132,7 @@ public sealed class CompactDiscInfoViewModel : ViewModelBase
|
||||
{
|
||||
IStorageFile result = await _view.StorageProvider.SaveFilePickerAsync(new FilePickerSaveOptions
|
||||
{
|
||||
FileTypeChoices = new List<FilePickerFileType>
|
||||
{
|
||||
FilePickerFileTypes.Binary
|
||||
}
|
||||
FileTypeChoices = [FilePickerFileTypes.Binary]
|
||||
});
|
||||
|
||||
if(result is null) return;
|
||||
@@ -150,10 +147,7 @@ public sealed class CompactDiscInfoViewModel : ViewModelBase
|
||||
{
|
||||
IStorageFile result = await _view.StorageProvider.SaveFilePickerAsync(new FilePickerSaveOptions
|
||||
{
|
||||
FileTypeChoices = new List<FilePickerFileType>
|
||||
{
|
||||
FilePickerFileTypes.Binary
|
||||
}
|
||||
FileTypeChoices = [FilePickerFileTypes.Binary]
|
||||
});
|
||||
|
||||
if(result is null) return;
|
||||
@@ -168,10 +162,7 @@ public sealed class CompactDiscInfoViewModel : ViewModelBase
|
||||
{
|
||||
IStorageFile result = await _view.StorageProvider.SaveFilePickerAsync(new FilePickerSaveOptions
|
||||
{
|
||||
FileTypeChoices = new List<FilePickerFileType>
|
||||
{
|
||||
FilePickerFileTypes.Binary
|
||||
}
|
||||
FileTypeChoices = [FilePickerFileTypes.Binary]
|
||||
});
|
||||
|
||||
if(result is null) return;
|
||||
@@ -186,10 +177,7 @@ public sealed class CompactDiscInfoViewModel : ViewModelBase
|
||||
{
|
||||
IStorageFile result = await _view.StorageProvider.SaveFilePickerAsync(new FilePickerSaveOptions
|
||||
{
|
||||
FileTypeChoices = new List<FilePickerFileType>
|
||||
{
|
||||
FilePickerFileTypes.Binary
|
||||
}
|
||||
FileTypeChoices = [FilePickerFileTypes.Binary]
|
||||
});
|
||||
|
||||
if(result is null) return;
|
||||
@@ -204,10 +192,7 @@ public sealed class CompactDiscInfoViewModel : ViewModelBase
|
||||
{
|
||||
IStorageFile result = await _view.StorageProvider.SaveFilePickerAsync(new FilePickerSaveOptions
|
||||
{
|
||||
FileTypeChoices = new List<FilePickerFileType>
|
||||
{
|
||||
FilePickerFileTypes.Binary
|
||||
}
|
||||
FileTypeChoices = [FilePickerFileTypes.Binary]
|
||||
});
|
||||
|
||||
if(result is null) return;
|
||||
@@ -222,10 +207,7 @@ public sealed class CompactDiscInfoViewModel : ViewModelBase
|
||||
{
|
||||
IStorageFile result = await _view.StorageProvider.SaveFilePickerAsync(new FilePickerSaveOptions
|
||||
{
|
||||
FileTypeChoices = new List<FilePickerFileType>
|
||||
{
|
||||
FilePickerFileTypes.Binary
|
||||
}
|
||||
FileTypeChoices = [FilePickerFileTypes.Binary]
|
||||
});
|
||||
|
||||
if(result is null) return;
|
||||
@@ -240,10 +222,7 @@ public sealed class CompactDiscInfoViewModel : ViewModelBase
|
||||
{
|
||||
IStorageFile result = await _view.StorageProvider.SaveFilePickerAsync(new FilePickerSaveOptions
|
||||
{
|
||||
FileTypeChoices = new List<FilePickerFileType>
|
||||
{
|
||||
FilePickerFileTypes.Binary
|
||||
}
|
||||
FileTypeChoices = [FilePickerFileTypes.Binary]
|
||||
});
|
||||
|
||||
if(result is null) return;
|
||||
|
||||
Reference in New Issue
Block a user