mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[Refactor] Use collection expressions.
This commit is contained in:
@@ -125,8 +125,8 @@ public sealed class MediaDumpViewModel : ViewModelBase
|
||||
CloseCommand = ReactiveCommand.Create(ExecuteCloseCommand);
|
||||
StopCommand = ReactiveCommand.Create(ExecuteStopCommand);
|
||||
DestinationCommand = ReactiveCommand.Create(ExecuteDestinationCommand);
|
||||
PluginsList = new ObservableCollection<ImagePluginModel>();
|
||||
Encodings = new ObservableCollection<EncodingModel>();
|
||||
PluginsList = [];
|
||||
Encodings = [];
|
||||
|
||||
// Defaults
|
||||
StopOnError = false;
|
||||
@@ -519,10 +519,13 @@ public sealed class MediaDumpViewModel : ViewModelBase
|
||||
dlgMetadata.Filters?.Add(new FileDialogFilter
|
||||
{
|
||||
Name = UI.Dialog_Aaru_Metadata,
|
||||
Extensions = new List<string>(new[]
|
||||
{
|
||||
".json"
|
||||
})
|
||||
Extensions =
|
||||
[
|
||||
..new[]
|
||||
{
|
||||
".json"
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
string[] result = dlgMetadata.ShowAsync(_view).Result;
|
||||
|
||||
Reference in New Issue
Block a user