Folder management stuff.

This commit is contained in:
Burak Kaan Köse
2026-04-18 00:02:54 +02:00
parent 98eed39fe6
commit d287c22725
11 changed files with 52 additions and 37 deletions
@@ -292,10 +292,15 @@ public partial class AccountDetailsPageViewModel : MailBaseViewModel
var folderStructures = (await _folderService.GetFolderStructureForAccountAsync(Account.Id, true)).Folders;
foreach (var folder in folderStructures)
await ExecuteUIThread(() =>
{
CurrentFolders.Add(folder);
}
CurrentFolders.Clear();
foreach (var folder in folderStructures)
{
CurrentFolders.Add(folder);
}
});
// Load calendar list
await LoadAccountCalendarsAsync();
@@ -8,10 +8,10 @@ using Serilog;
using Wino.Core.Domain;
using Wino.Core.Domain.Entities.Shared;
using Wino.Core.Domain.Enums;
using Wino.Core.Domain.Exceptions;
using Wino.Core.Domain.Interfaces;
using Wino.Core.Domain.Models.Accounts;
using Wino.Core.Domain.Models.Calendar;
using Wino.Core.Domain.Exceptions;
using Wino.Core.Domain.Models.Navigation;
using Wino.Core.Domain.Models.Synchronization;
using Wino.Core.Services;
@@ -221,7 +221,7 @@ public partial class AccountSetupProgressPageViewModel : MailBaseViewModel
if (!string.IsNullOrEmpty(profileResult.ProfileInformation.AccountAddress))
{
if (await _accountService.AccountAddressExistsAsync(profileResult.ProfileInformation.AccountAddress, _createdAccount.Id).ConfigureAwait(false))
if (await _accountService.AccountAddressExistsAsync(profileResult.ProfileInformation.AccountAddress, _createdAccount.Id))
throw new InvalidOperationException(Translator.DialogMessage_AccountAddressExistsMessage);
_createdAccount.Address = profileResult.ProfileInformation.AccountAddress;
@@ -118,7 +118,7 @@ public partial class ProviderSelectionPageViewModel : MailBaseViewModel
{
if (!CanProceed) return;
if (await _accountService.AccountNameExistsAsync(AccountName).ConfigureAwait(false))
if (await _accountService.AccountNameExistsAsync(AccountName))
{
await _dialogService.ShowMessageAsync(
Translator.DialogMessage_AccountNameExistsMessage,