2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-11-17 18:52:06 +00:00

chore: add error handling for fastfile bind

This commit is contained in:
Jan Laupetin
2025-10-11 14:42:52 +01:00
parent 2037cf3258
commit 098be53559
4 changed files with 36 additions and 14 deletions

View File

@@ -9,9 +9,15 @@ async function onOpenFastfileClick() {
lastPath.value =
(await webviewBinds.openFileDialog({ filters: [{ name: "Fastfiles", filter: "*.ff" }] })) ?? "";
loadingFastFile.value = true;
await webviewBinds.loadFastFile(lastPath.value);
loadingFastFile.value = true;
webviewBinds.loadFastFile(lastPath.value)
.catch((e) => {
console.error("Failed to load fastfile", e);
})
.finally(() => {
loadingFastFile.value = false;
});
}
</script>