mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[Refactor] Replace backing fields with auto-properties in view models
This commit is contained in:
@@ -37,7 +37,6 @@ public sealed partial class FileViewViewModel : ViewModelBase
|
||||
string _informationalVersion;
|
||||
[ObservableProperty]
|
||||
bool _isStatusVisible;
|
||||
FileModel? _selectedFile;
|
||||
[ObservableProperty]
|
||||
string _status;
|
||||
|
||||
@@ -62,10 +61,10 @@ public sealed partial class FileViewViewModel : ViewModelBase
|
||||
|
||||
public FileModel? SelectedFile
|
||||
{
|
||||
get => _selectedFile;
|
||||
get;
|
||||
set
|
||||
{
|
||||
SetProperty(ref _selectedFile, value);
|
||||
SetProperty(ref field, value);
|
||||
OnPropertyChanged(nameof(IsFileInfoAvailable));
|
||||
OnPropertyChanged(nameof(SelectedFileIsNotDirectory));
|
||||
OnPropertyChanged(nameof(SelectedFileLength));
|
||||
|
||||
Reference in New Issue
Block a user