Start git without a console window on Windows, and run one reload at a time
This commit was merged in pull request #3.
This commit is contained in:
@@ -105,11 +105,18 @@ function startDrag(e: PointerEvent, axis: "x" | "y") {
|
||||
|
||||
let filtersLoadedFor: string | null = null;
|
||||
|
||||
let loading = false;
|
||||
|
||||
async function load() {
|
||||
// The window gets focus often; one reload at a time is enough.
|
||||
if (loading) return;
|
||||
loading = true;
|
||||
try {
|
||||
await applyRepo(await invoke<RepoData>("load_repo"));
|
||||
} catch (e) {
|
||||
error.value = String(e);
|
||||
} finally {
|
||||
loading = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user