Open on another machine from the window; keep the graph when a reload fails
This commit is contained in:
+3
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user