From b0b6aa92430df17b56df1befccffd4bcaea5ed4a Mon Sep 17 00:00:00 2001 From: ccmdi Date: Wed, 15 Oct 2025 19:27:34 -0400 Subject: [PATCH] fix: allow rebuild on thumbnail cache clear --- src/settings/map-settings.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/settings/map-settings.ts b/src/settings/map-settings.ts index 520fb4b..a84aab7 100644 --- a/src/settings/map-settings.ts +++ b/src/settings/map-settings.ts @@ -179,6 +179,10 @@ export class MapSettingTab extends PluginSettingTab { const progressInterval = window.setInterval(() => { updateStatus(); }, 500); + + // force refresh markers for cover context + this.plugin.refreshAllMapViews(); + await new Promise(resolve => setTimeout(resolve, 1000)); await this.plugin.thumbnailCache.rebuildCache((current, total) => { button.setButtonText(`Rebuilding ${current}/${total}...`);