mirror of
https://github.com/ccmdi/obsidian-map-plus.git
synced 2026-07-22 06:43:14 +00:00
fix: allow rebuild on thumbnail cache clear
This commit is contained in:
parent
69b8b02358
commit
b0b6aa9243
1 changed files with 4 additions and 0 deletions
|
|
@ -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}...`);
|
||||
|
|
|
|||
Loading…
Reference in a new issue