diff --git a/Directory.Packages.props b/Directory.Packages.props
index 9f6d84b1..ebc19048 100644
--- a/Directory.Packages.props
+++ b/Directory.Packages.props
@@ -46,7 +46,6 @@
-
diff --git a/Wino.Core/Wino.Core.csproj b/Wino.Core/Wino.Core.csproj
index 59f2ce00..2ef44ca1 100644
--- a/Wino.Core/Wino.Core.csproj
+++ b/Wino.Core/Wino.Core.csproj
@@ -31,7 +31,6 @@
-
diff --git a/Wino.Mail.WinUI/Dialogs/KeyboardShortcutDialog.xaml b/Wino.Mail.WinUI/Dialogs/KeyboardShortcutDialog.xaml
index fefb648f..231b65d2 100644
--- a/Wino.Mail.WinUI/Dialogs/KeyboardShortcutDialog.xaml
+++ b/Wino.Mail.WinUI/Dialogs/KeyboardShortcutDialog.xaml
@@ -32,9 +32,15 @@
+ SelectedItem="{x:Bind SelectedMailOperation, Mode=TwoWay}">
+
+
+
+
+
+
+
diff --git a/Wino.Mail.WinUI/Package.appxmanifest b/Wino.Mail.WinUI/Package.appxmanifest
index d186e688..7ad4f3c9 100644
--- a/Wino.Mail.WinUI/Package.appxmanifest
+++ b/Wino.Mail.WinUI/Package.appxmanifest
@@ -22,7 +22,7 @@
+ Version="2.0.13.0" />
diff --git a/Wino.Mail.WinUI/Views/Account/AccountManagementPage.xaml b/Wino.Mail.WinUI/Views/Account/AccountManagementPage.xaml
index 55a8b33c..8a44c482 100644
--- a/Wino.Mail.WinUI/Views/Account/AccountManagementPage.xaml
+++ b/Wino.Mail.WinUI/Views/Account/AccountManagementPage.xaml
@@ -9,6 +9,7 @@
xmlns:data="using:Wino.Core.ViewModels.Data"
xmlns:domain="using:Wino.Core.Domain"
xmlns:helpers="using:Wino.Helpers"
+ xmlns:interfaces="using:Wino.Core.Domain.Interfaces"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
xmlns:selectors="using:Wino.Selectors"
@@ -194,9 +195,14 @@
+ SelectedItem="{x:Bind ViewModel.StartupAccount, Mode=TwoWay}">
+
+
+
+
+
+
diff --git a/Wino.Mail.WinUI/Views/ComposePage.xaml b/Wino.Mail.WinUI/Views/ComposePage.xaml
index 2c463370..c56d2e53 100644
--- a/Wino.Mail.WinUI/Views/ComposePage.xaml
+++ b/Wino.Mail.WinUI/Views/ComposePage.xaml
@@ -12,6 +12,7 @@
xmlns:domain="using:Wino.Core.Domain"
xmlns:entities="using:Wino.Core.Domain.Entities.Shared"
xmlns:helpers="using:Wino.Helpers"
+ xmlns:mail="using:Wino.Core.Domain.Entities.Mail"
xmlns:mailkit="using:MimeKit"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
@@ -470,10 +471,15 @@
+ SelectedItem="{x:Bind ViewModel.SelectedAlias, Mode=TwoWay}">
+
+
+
+
+
+
+ SelectedIndex="0">
+
+
+
+
+
+
@@ -115,9 +121,14 @@
+ SelectedIndex="0">
+
+
+
+
+
+
@@ -174,9 +185,15 @@
+ SelectedIndex="0">
+
+
+
+
+
+
+
@@ -185,9 +202,14 @@
+ SelectedIndex="0">
+
+
+
+
+
+
diff --git a/Wino.Mail.WinUI/Views/Settings/EditAccountDetailsPage.xaml b/Wino.Mail.WinUI/Views/Settings/EditAccountDetailsPage.xaml
index 3d4ab072..ac6b7535 100644
--- a/Wino.Mail.WinUI/Views/Settings/EditAccountDetailsPage.xaml
+++ b/Wino.Mail.WinUI/Views/Settings/EditAccountDetailsPage.xaml
@@ -3,6 +3,7 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:abstract="using:Wino.Views.Abstract"
+ xmlns:accounts="using:Wino.Core.Domain.Models.Accounts"
xmlns:controls="using:CommunityToolkit.WinUI.Controls"
xmlns:converters="using:Wino.Core.WinUI.Converters"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
@@ -138,18 +139,28 @@
+ SelectedIndex="{x:Bind ViewModel.SelectedIncomingServerConnectionSecurityIndex, Mode=TwoWay}">
+
+
+
+
+
+
+ SelectedIndex="{x:Bind ViewModel.SelectedIncomingServerAuthenticationMethodIndex, Mode=TwoWay}">
+
+
+
+
+
+
+ SelectedIndex="{x:Bind ViewModel.SelectedOutgoingServerConnectionSecurityIndex, Mode=TwoWay}">
+
+
+
+
+
+
+ SelectedIndex="{x:Bind ViewModel.SelectedOutgoingServerAuthenticationMethodIndex, Mode=TwoWay}">
+
+
+
+
+
+
@@ -15,10 +16,13 @@
CommandParameter="Language"
Description="{x:Bind domain:Translator.SettingsLanguage_Description}"
Header="{x:Bind domain:Translator.SettingsLanguage_Title}">
-
+
+
+
+
+
+
+
diff --git a/Wino.Mail.WinUI/Views/Settings/PersonalizationPage.xaml b/Wino.Mail.WinUI/Views/Settings/PersonalizationPage.xaml
index 66c440e5..93008c61 100644
--- a/Wino.Mail.WinUI/Views/Settings/PersonalizationPage.xaml
+++ b/Wino.Mail.WinUI/Views/Settings/PersonalizationPage.xaml
@@ -105,10 +105,15 @@
+ SelectedItem="{x:Bind ViewModel.SelectedElementTheme, Mode=TwoWay}">
+
+
+
+
+
+
diff --git a/Wino.Mail.WinUI/Wino.Mail.WinUI.csproj b/Wino.Mail.WinUI/Wino.Mail.WinUI.csproj
index d74bef08..0eb35e4b 100644
--- a/Wino.Mail.WinUI/Wino.Mail.WinUI.csproj
+++ b/Wino.Mail.WinUI/Wino.Mail.WinUI.csproj
@@ -15,13 +15,20 @@
False
True
- True
+ False
true
+ False
+ True
+
+
+ False
+ True
+
$(DefineConstants);DISABLE_XAML_GENERATED_MAIN
-
+
@@ -269,13 +276,6 @@
- False
- True
-
-
- False
- True
-
True
False
True
@@ -287,4 +287,4 @@
0
2661584A2F31D3419FFF8AA09A2C16B1991B8290
-
\ No newline at end of file
+
diff --git a/Wino.Services/AccountService.cs b/Wino.Services/AccountService.cs
index 2a3c7696..c7ccac9f 100644
--- a/Wino.Services/AccountService.cs
+++ b/Wino.Services/AccountService.cs
@@ -5,7 +5,6 @@ using System.Threading.Tasks;
using CommunityToolkit.Diagnostics;
using CommunityToolkit.Mvvm.Messaging;
using Serilog;
-using SqlKata;
using Wino.Core.Domain.Entities.Mail;
using Wino.Core.Domain.Entities.Shared;
using Wino.Core.Domain.Enums;
@@ -55,14 +54,13 @@ public class AccountService : BaseDatabaseService, IAccountService
await Connection.ExecuteAsync("UPDATE MailAccount SET MergedInboxId = NULL WHERE MergedInboxId = ?", mergedInboxId);
// Then, add new accounts to merged inbox.
- var query = new Query("MailAccount")
- .WhereIn("Id", linkedAccountIds)
- .AsUpdate(new
- {
- MergedInboxId = mergedInboxId
- });
-
- await Connection.ExecuteAsync(query.GetRawQuery());
+ var accountIdList = linkedAccountIds.ToList();
+ var placeholders = string.Join(",", accountIdList.Select(_ => "?"));
+ var sql = $"UPDATE MailAccount SET MergedInboxId = ? WHERE Id IN ({placeholders})";
+ var parameters = new List