Sign in , out ,register.

This commit is contained in:
Burak Kaan Köse
2026-03-16 01:33:27 +01:00
parent 921c3bef93
commit 37c1bd3f62
35 changed files with 1195 additions and 30 deletions
+12
View File
@@ -255,6 +255,7 @@ public partial class App : WinoApplication,
// Initialize theme service after window creation.
// Theme service requires the window to exist to properly load and apply themes.
await NewThemeService.InitializeAsync();
await LoadInitialWinoAccountAsync();
LogActivation("Theme service initialized.");
// If startup task launch, keep window hidden (system tray only).
@@ -826,6 +827,17 @@ public partial class App : WinoApplication,
_autoSynchronizationLoopCts = null;
}
private async Task LoadInitialWinoAccountAsync()
{
var winoAccountProfileService = Services.GetRequiredService<IWinoAccountProfileService>();
var winoAccount = await winoAccountProfileService.GetActiveAccountAsync().ConfigureAwait(false);
if (winoAccount != null)
{
WeakReferenceMessenger.Default.Send(new WinoAccountSignedInMessage(winoAccount));
}
}
private async Task RunAutoSynchronizationLoopAsync(TimeSpan interval, CancellationToken cancellationToken)
{
try