mirror of
https://github.com/silvanocerza/github-gitless-sync.git
synced 2026-07-22 05:41:36 +00:00
Fix config sync during onboarding
This commit is contained in:
parent
524c7efed7
commit
3bd65baf7b
1 changed files with 10 additions and 0 deletions
|
|
@ -308,6 +308,16 @@ const FirstSyncStepComponent = ({
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
await syncManager.loadMetadata();
|
await syncManager.loadMetadata();
|
||||||
|
// When loading the plugin we also load the metadata, though since by default
|
||||||
|
// configs sync is enabled we need to remove them if necessary. Otherwise they
|
||||||
|
// would be synced even if the user doesn't want them to be.
|
||||||
|
// We also add them if they want to sync config dirs just for completeness, though
|
||||||
|
// they should already be there.
|
||||||
|
if (stepData.sync.syncConfigDir) {
|
||||||
|
await syncManager.addConfigDirToMetadata();
|
||||||
|
} else {
|
||||||
|
await syncManager.removeConfigDirFromMetadata();
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
await syncManager.firstSync();
|
await syncManager.firstSync();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue