diff --git a/src/App.svelte b/src/App.svelte index 32c6b59..503c7f7 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -1939,6 +1939,21 @@ if (!activeStillOpen) await openRepo(path); } + async function removeRepoFromRecent(path: string, event?: MouseEvent) { + event?.stopPropagation(); + if (isBusy) return; + recentRepoPaths = recentRepoPaths.filter((recentPath) => !sameRepoPath(recentPath, path)); + persistRepoLists(); + trackEvent("repository_removed_from_recent", { + recent_repositories: recentRepoPaths.length, + }); + if (!repoTabs.some((tab) => sameRepoPath(tab.path, path)) && !isFavoriteRepo(path) && repoStatusCache[repoKey(path)]) { + const { [repoKey(path)]: _removed, ...rest } = repoStatusCache; + repoStatusCache = rest; + persistRepoStatusCache(); + } + } + async function removeRepoFromManagement(path: string, event?: MouseEvent) { event?.stopPropagation(); if (isBusy) return; @@ -3516,7 +3531,7 @@ >