Fixing profile sync for gmail and separating authenticators token storage.

This commit is contained in:
Burak Kaan Köse
2024-12-01 03:05:15 +01:00
parent 0cd1568c64
commit 678d947f16
15 changed files with 106 additions and 30 deletions

View File

@@ -233,7 +233,9 @@ namespace Wino
}
catch (WinoServerException serverException)
{
DialogService.InfoBarMessage(Translator.Info_SyncFailedTitle, serverException.Message, InfoBarMessageType.Error);
var dialogService = Services.GetService<IMailDialogService>();
dialogService.InfoBarMessage(Translator.Info_SyncFailedTitle, serverException.Message, InfoBarMessageType.Error);
}
}
@@ -260,7 +262,7 @@ namespace Wino
// Starting the server is fine, but check if server termination behavior is set to terminate.
// This state will kill the server once the app is terminated.
isGoToAppPreferencesRequested = await DialogService.ShowWinoCustomMessageDialogAsync(Translator.AppCloseBackgroundSynchronizationWarningTitle,
isGoToAppPreferencesRequested = await dialogService.ShowWinoCustomMessageDialogAsync(Translator.AppCloseBackgroundSynchronizationWarningTitle,
$"{Translator.AppCloseTerminateBehaviorWarningMessageFirstLine}\n{Translator.AppCloseTerminateBehaviorWarningMessageSecondLine}\n\n{Translator.AppCloseTerminateBehaviorWarningMessageThirdLine}",
Translator.Buttons_Yes,
WinoCustomMessageDialogIcon.Warning,

View File

@@ -25,5 +25,7 @@ namespace Wino.Services
"https://www.googleapis.com/auth/userinfo.profile",
"https://www.googleapis.com/auth/gmail.labels"
};
public string GmailTokenStoreIdentifier => "WinoMailGmailTokenStore";
}
}