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:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user