Settings refactoring.

This commit is contained in:
Burak Kaan Köse
2026-03-24 01:18:06 +01:00
parent 5c7f6aa734
commit ff84d62196
35 changed files with 990 additions and 999 deletions
@@ -116,7 +116,7 @@ public partial class WinoAccountManagementPageViewModel : CoreBaseViewModel,
[RelayCommand]
private async Task ChangePasswordAsync()
{
var account = await _profileService.GetActiveAccountAsync().ConfigureAwait(false);
var account = await _profileService.GetActiveAccountAsync();
if (account == null)
{
_dialogService.InfoBarMessage(Translator.GeneralTitle_Warning,
@@ -128,14 +128,14 @@ public partial class WinoAccountManagementPageViewModel : CoreBaseViewModel,
var shouldContinue = await _dialogService.ShowConfirmationDialogAsync(
string.Format(Translator.WinoAccount_ChangePassword_ConfirmationMessage, account.Email),
Translator.WinoAccount_ChangePassword_Title,
Translator.WinoAccount_ChangePassword_Action).ConfigureAwait(false);
Translator.WinoAccount_ChangePassword_Action);
if (!shouldContinue)
{
return;
}
var response = await _profileService.ForgotPasswordAsync(account.Email).ConfigureAwait(false);
var response = await _profileService.ForgotPasswordAsync(account.Email);
if (!response.IsSuccess)
{
_dialogService.InfoBarMessage(Translator.GeneralTitle_Error,