Skip to content

Commit

Permalink
fix: anki not being available error message saying that it would resu…
Browse files Browse the repository at this point in the history
…lt in not saving state
  • Loading branch information
BrewingWeasel committed Aug 4, 2024
1 parent a1c00cc commit 69c0144
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,16 @@ const toasters: Ref<Map<string, number | null>> = ref(
onMounted(async () => {
await invoke("check_startup_errors").catch((errors) => {
console.log(errors);
for (const error of errors) {
console.log(error);
toast.error(`${error} (state and settings will not be saved)`);
if (error.includes("Anki")) {
toast.error(error, { duration: 6000 });
} else {
toast.error(`${error} (state and settings will not be saved)`, {
duration: 6000,
});
}
}
});
Expand Down

0 comments on commit 69c0144

Please sign in to comment.