mirror of
https://github.com/silvanocerza/github-gitless-sync.git
synced 2026-07-22 12:10:28 +00:00
Reload metadata in main sync manager after onboarding sync
This commit is contained in:
parent
4552554f80
commit
3ab680cf4c
1 changed files with 4 additions and 0 deletions
|
|
@ -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();
|
||||
}}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Reference in a new issue