refactor!(dialog): change type field in JS to kind (#945)

* Fix dialog type not working

* gen files

* type -> kind

* update API example

---------

Co-authored-by: amrbashir <amr.bashir2015@gmail.com>
This commit is contained in:
Tonyandamrbashir authored and GitHub committed 2024-02-14 01:05:54 +02:00
1 parent dac8b6331c
commit 2e7ef46d8b
6 files changed
+29 -21

No files matched your search

+2 -1
View File
@@ -2,6 +2,7 @@
import { writable } from "svelte/store";
import { open } from "@tauri-apps/plugin-shell";
import { getCurrent } from "@tauri-apps/api/window";
import { getCurrent as getCurrentWebview } from "@tauri-apps/api/webview";
import * as os from "@tauri-apps/plugin-os";
import Welcome from "./views/Welcome.svelte";
@@ -35,7 +36,7 @@
});
}
appWindow.onFileDropEvent((event) => {
getCurrentWebview().onFileDropEvent((event) => {
onMessage(`File drop: ${JSON.stringify(event.payload)}`);
});