Skip to content

Commit 8537da6

Browse files
Apply suggestions from code review
Co-authored-by: Copilot <[email protected]>
1 parent 0680bda commit 8537da6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/NETworkManager/ViewModels/SettingsProfilesViewModel.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ private static void OpenLocationAction()
103103
Process.Start("explorer.exe", ProfileManager.GetProfilesFolderLocation());
104104
}
105105

106-
public ICommand AddProfileFileCommand => new RelayCommand(_ => AddProfileFileAction().ConfigureAwait(false));
106+
public ICommand AddProfileFileCommand => new RelayCommand(async _ => await AddProfileFileAction().ConfigureAwait(false));
107107

108108
private async Task AddProfileFileAction()
109109
{
@@ -175,7 +175,7 @@ private async Task<bool> ShowEnableEncryptionMessage()
175175
return result;
176176
}
177177

178-
public ICommand EditProfileFileCommand => new RelayCommand(_ => EditProfileFileAction().ConfigureAwait(false));
178+
public ICommand EditProfileFileCommand => new RelayCommand(async _ => await EditProfileFileAction().ConfigureAwait(false));
179179

180180
private async Task EditProfileFileAction()
181181
{
@@ -250,7 +250,7 @@ private Task DeleteProfileFileAction()
250250

251251
private async void EnableEncryptionAction()
252252
{
253-
if (await ShowEncryptionDisclaimerAsync() == false)
253+
if (!await ShowEncryptionDisclaimerAsync())
254254
return;
255255

256256
var customDialog = new CustomDialog

0 commit comments

Comments
 (0)