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:
Tony
2024-02-14 07:05:54 +08:00
committed by GitHub
parent dac8b6331c
commit 2e7ef46d8b
6 changed files with 29 additions and 21 deletions
@@ -26,6 +26,7 @@
"dialog:allow-open",
"dialog:allow-save",
"dialog:allow-confirm",
"dialog:allow-message",
{
"identifier": "shell:allow-execute",
"allow": [
+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)}`);
});