fix: allow rebuild on thumbnail cache clear

This commit is contained in:
ccmdi 2025-10-15 19:27:34 -04:00
parent 69b8b02358
commit b0b6aa9243
No known key found for this signature in database

View file

@ -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}...`);