We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 524c7ef commit 3bd65baCopy full SHA for 3bd65ba
src/views/onboarding/component.tsx
@@ -308,6 +308,16 @@ const FirstSyncStepComponent = ({
308
},
309
);
310
await syncManager.loadMetadata();
311
+ // When loading the plugin we also load the metadata, though since by default
312
+ // configs sync is enabled we need to remove them if necessary. Otherwise they
313
+ // would be synced even if the user doesn't want them to be.
314
+ // We also add them if they want to sync config dirs just for completeness, though
315
+ // they should already be there.
316
+ if (stepData.sync.syncConfigDir) {
317
+ await syncManager.addConfigDirToMetadata();
318
+ } else {
319
+ await syncManager.removeConfigDirFromMetadata();
320
+ }
321
try {
322
await syncManager.firstSync();
323
} catch (e) {
0 commit comments