Handling of all day events and auto calendar sync on account creation.

This commit is contained in:
Burak Kaan Köse
2026-03-28 01:44:12 +01:00
parent 686446937b
commit 6f61605c12
16 changed files with 393 additions and 10381 deletions
+12 -11
View File
@@ -189,14 +189,7 @@ public class NewThemeService : INewThemeService
public FrameworkElement GetShellRootContent()
{
var window = GetThemeWindow();
if (window is IWinoShellWindow shellWindow)
return shellWindow.GetRootContent();
if (window?.Content is FrameworkElement frameworkElement)
return frameworkElement;
throw new Exception("No root content found");
return TryGetShellRootContent() ?? throw new Exception("No root content found");
}
private bool isInitialized = false;
@@ -680,10 +673,18 @@ public class NewThemeService : INewThemeService
if (window == null)
return null;
if (window is IWinoShellWindow shellWindow)
return shellWindow.GetRootContent();
try
{
if (window is IWinoShellWindow shellWindow)
return shellWindow.GetRootContent();
return window.Content as FrameworkElement;
return window.Content as FrameworkElement;
}
catch (Exception ex)
{
Debug.WriteLine($"Skipping root content lookup for closed window: {ex.Message}");
return null;
}
}
public async Task ApplyThemeToActiveWindowAsync()