Skip to content

Commit

Permalink
fix(friendshipper): fix initial repo clone from modal
Browse files Browse the repository at this point in the history
  • Loading branch information
rudoi committed Dec 16, 2024
1 parent a0b0bf0 commit 364878e
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions friendshipper/src/lib/components/oobe/WelcomeModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@
try {
await updateAppConfig(updatedAppConfig);
await emit('success', 'Preferences saved.');
await restart();
} catch (e) {
await emit('error', e);
}
Expand All @@ -151,26 +150,23 @@
const initiateRepoClone = async () => {
errorMessage = '';
try {
cloning = true;
await handleUpdateAppConfig();
// only clone if this is our first time through
if (!currentConfig.repoPath) {
cloning = true;
await cloneRepo({ url: repoUrl, path: cloneLocation });
await cloneRepo({ url: repoUrl, path: cloneLocation });
// force update of repo status
message = 'Updating repo status...';
$repoStatus = await getRepoStatus(SkipDllCheck.False, AllowOfflineCommunication.False);
// force update of repo status
message = 'Updating repo status...';
$repoStatus = await getRepoStatus(SkipDllCheck.False, AllowOfflineCommunication.False);
// run initial fetch of DLLs - it may be worth moving this and the engine fetch
// to the clone endpoint on the backend
message = 'Performing initial fetch of DLLs...';
await forceDownloadDlls();
// run initial fetch of DLLs - it may be worth moving this and the engine fetch
// to the clone endpoint on the backend
message = 'Performing initial fetch of DLLs...';
await forceDownloadDlls();
// run initial fetch of Engine binaries
message = 'Performing initial fetch of Engine binaries...';
await forceDownloadEngine();
}
// run initial fetch of Engine binaries
message = 'Performing initial fetch of Engine binaries...';
await forceDownloadEngine();
} catch (e) {
const error = e as Error;
errorMessage = String(error.message);
Expand Down

0 comments on commit 364878e

Please sign in to comment.