Reload metadata in main sync manager after onboarding sync

This commit is contained in:
Silvano Cerza 2025-01-22 16:18:45 +01:00
parent 4552554f80
commit 3ab680cf4c

View file

@ -22,7 +22,11 @@ export class OnboardingDialog extends Modal {
<OnboardingDialogComponent
onClose={async () => {
this.plugin.settings.firstStart = false;
// Save the settings only after a successful first sync
await this.plugin.saveSettings();
// Reload metadata after sync to be sure that the main sync manager
// uses the latest version
await this.plugin.syncManager.loadMetadata();
this.close();
}}
/>