Outlook auth fix and actually syncing.
This commit is contained in:
@@ -83,18 +83,21 @@ public partial class App : WinoApplication, IRecipient<NewMailSynchronizationReq
|
||||
// TODO: Check app relaunch mutex before loading anything.
|
||||
|
||||
// Initialize NewThemeService first to get backdrop settings before creating window
|
||||
var newThemeService = Services.GetService<INewThemeService>();
|
||||
var configService = Services.GetService<IConfigurationService>();
|
||||
var newThemeService = Services.GetRequiredService<INewThemeService>();
|
||||
var configService = Services.GetRequiredService<IConfigurationService>();
|
||||
var nativeAppService = Services.GetRequiredService<INativeAppService>();
|
||||
|
||||
// Load saved backdrop type before creating window
|
||||
var savedBackdropType = (WindowBackdropType)configService.Get("WindowBackdropTypeKey", (int)WindowBackdropType.Mica);
|
||||
|
||||
MainWindow = new ShellWindow();
|
||||
|
||||
nativeAppService.GetCoreWindowHwnd = () => WinRT.Interop.WindowNative.GetWindowHandle(MainWindow);
|
||||
|
||||
await InitializeServicesAsync();
|
||||
|
||||
// Initialize system tray
|
||||
var systemTrayService = Services.GetService<ISystemTrayService>();
|
||||
var systemTrayService = Services.GetRequiredService<ISystemTrayService>();
|
||||
if (systemTrayService != null)
|
||||
{
|
||||
systemTrayService.Initialize();
|
||||
|
||||
@@ -37,9 +37,11 @@ public class DialogService : DialogServiceBase, IMailDialogService
|
||||
{
|
||||
if (accountCreationDialogResult.ProviderType == MailProviderType.IMAP4)
|
||||
{
|
||||
|
||||
return new NewImapSetupDialog
|
||||
{
|
||||
RequestedTheme = ThemeService.RootTheme.ToWindowsElementTheme()
|
||||
RequestedTheme = ThemeService.RootTheme.ToWindowsElementTheme(),
|
||||
XamlRoot = GetXamlRoot()
|
||||
};
|
||||
}
|
||||
else
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
<TitleBar
|
||||
x:Name="ShellTitleBar"
|
||||
Title="{x:Bind StatePersistanceService.CoreWindowTitle, Mode=OneWay}"
|
||||
Margin="-3,-3,0,0"
|
||||
HorizontalContentAlignment="Stretch"
|
||||
VerticalContentAlignment="Stretch"
|
||||
BackRequested="BackButtonClicked"
|
||||
|
||||
@@ -209,7 +209,7 @@
|
||||
<KeyboardAccelerator Key="Delete" Invoked="DeleteAllInvoked" />
|
||||
</Page.KeyboardAccelerators>
|
||||
<wino:BasePage.ShellContent>
|
||||
<Grid HorizontalAlignment="Stretch" Background="Red">
|
||||
<Grid HorizontalAlignment="Stretch">
|
||||
<!-- Hidden focus receiver... -->
|
||||
<TextBox
|
||||
Grid.Column="1"
|
||||
|
||||
Reference in New Issue
Block a user