Skip to content

Commit 2db901e

Browse files
authored
feat(core): add file drop handler (#1352)
1 parent 53910ff commit 2db901e

File tree

11 files changed

+304
-207
lines changed

11 files changed

+304
-207
lines changed

.changes/file-drop-events.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri": minor
3+
---
4+
5+
Tauri now emits events on file drops on the webview window.

api/src/shell.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { invokeTauriCommand } from './helpers/tauri'
77
* @param [args] command args
88
* @return promise resolving to the stdout text
99
*/
10-
async function execute (
10+
async function execute(
1111
command: string,
1212
args?: string | string[]
1313
): Promise<string> {
@@ -32,7 +32,7 @@ async function execute (
3232
* @param path the path or URL to open
3333
* @param openWith the app to open the file or URL with
3434
*/
35-
async function open (path: string, openWith?: string): Promise<void> {
35+
async function open(path: string, openWith?: string): Promise<void> {
3636
return invokeTauriCommand({
3737
__tauriModule: 'Shell',
3838
message: {

cli/core/Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tauri/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ thiserror = "1.0.24"
3030
once_cell = "1.7.2"
3131
tauri-api = { version = "0.7.5", path = "../tauri-api" }
3232
tauri-macros = { version = "0.1", path = "../tauri-macros" }
33-
wry = { git = "https://github.com/tauri-apps/wry", rev = "729fdc182eaf4af44d822dfc9396deb3f5f5810a" }
33+
wry = { git = "https://github.com/tauri-apps/wry", rev = "39575983dbd128fbbcde933d742b33b691fd1def" }
3434
rand = "0.8"
3535

3636
[build-dependencies]

0 commit comments

Comments
 (0)