Dispose mail webviews when closing the shell

This commit is contained in:
Burak Kaan Köse
2026-04-20 19:40:32 +02:00
parent d85812ed7b
commit 2b1676a4f7
7 changed files with 129 additions and 12 deletions
@@ -0,0 +1,8 @@
namespace Wino.Core.Domain.Enums;
public enum ThreeButtonDialogResult
{
Primary,
Secondary,
Cancel
}
@@ -19,6 +19,12 @@ public interface IMailDialogService : IDialogServiceBase
{
void ShowReadOnlyCalendarMessage();
Task<bool> ShowHardDeleteConfirmationAsync();
Task<ThreeButtonDialogResult> ShowThreeButtonDialogAsync(string title,
string description,
string primaryButtonText,
string secondaryButtonText,
string cancelButtonText,
WinoCustomMessageDialogIcon? icon = null);
Task HandleSystemFolderConfigurationDialogAsync(Guid accountId, IFolderService folderService);
// Custom dialogs
@@ -305,6 +305,8 @@
"DialogMessage_DeleteRecurringSeriesTitle": "Delete Recurring Series",
"DialogMessage_DiscardDraftConfirmationMessage": "This draft will be discarded. Do you want to continue?",
"DialogMessage_DiscardDraftConfirmationTitle": "Discard Draft",
"DialogMessage_CloseDraftWindowConfirmationMessage": "A draft is still open. Save it before closing the window?",
"DialogMessage_CloseDraftWindowConfirmationTitle": "Close Window",
"DialogMessage_EmptySubjectConfirmation": "Missing Subject",
"DialogMessage_EmptySubjectConfirmationMessage": "Message has no subject. Do you want to continue?",
"DialogMessage_EnableStartupLaunchDeniedMessage": "You can enable startup launch from Settings -> App Preferences.",