修复了重复日历第一次不显示的问题。

This commit is contained in:
2026-09-13 17:48:39 +08:00
parent e0c6aa46d0
commit 61bd6fc75f
9 changed files with 189 additions and 15 deletions
@@ -76,6 +76,7 @@ struct AccountsPage {
if (acc.type === TYPE_CALDAV) {
await SyncEngine.withTimeout(
SyncEngine.syncAccount(context as common.UIAbilityContext, acc), 120000);
await SyncEngine.pruneOrphanRows(context, this.accounts);
}
acc.itemCount = acc.calendarHrefs.length;
acc.lastSyncTime = this.formatNow();