Skip to content

Commit 0daf67b

Browse files
authored
Fixed commands refactor code (#8255)
1 parent f51e79f commit 0daf67b

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

src/Files/ViewModels/FolderSettingsViewModel.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,7 @@ public FolderSettingsViewModel()
3939

4040
SetLayoutInformation();
4141
}
42-
43-
public FolderSettingsViewModel(FolderLayoutModes modeOverride)
44-
{
45-
rootLayoutMode = modeOverride;
46-
47-
this.LayoutPreference = new LayoutPreferences();
48-
49-
SetLayoutInformation();
50-
}
42+
public FolderSettingsViewModel(FolderLayoutModes modeOverride) : this() => rootLayoutMode = modeOverride;
5143

5244
private readonly FolderLayoutModes? rootLayoutMode;
5345

src/Files/ViewModels/StatusCenterViewModel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,8 @@ public StatusBanner(string message, string title, string primaryButtonText, stri
462462
PrimaryButtonClick = primaryButtonClicked;
463463
Status = ReturnResult.Failed;
464464

465+
CancelCommand = new RelayCommand(CancelOperation);
466+
465467
if (string.IsNullOrWhiteSpace(Title) || string.IsNullOrWhiteSpace(Message))
466468
{
467469
throw new NotImplementedException();

0 commit comments

Comments
 (0)