Open on another machine from the window; keep the graph when a reload fails

This commit is contained in:
2026-10-15 15:15:41 +02:00
parent 16b0363d07
commit ccf945a067
3 changed files with 87 additions and 7 deletions
+3 -1
View File
@@ -116,7 +116,9 @@ async function load() {
const data = await invoke<RepoData | null>("load_repo");
if (data) await applyRepo(data);
} catch (e) {
error.value = String(e);
// A repository already on screen stays, for example when a connection drops.
if (repo.value) showToast(`could not reload: ${e}`);
else error.value = String(e);
} finally {
loading = false;
started.value = true;