Skip to content

Commit 1bfc32a

Browse files
authored
fix(api.js): add fileDropEnabled to WindowOptions, closes #2968 (#2989)
1 parent 875c35e commit 1bfc32a

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"api": patch
3+
---
4+
5+
Add `fileDropEnabled` property to `WindowOptions` so you can now disable it when creating windows from js.

tooling/api/src/window.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,6 +1185,12 @@ interface WindowOptions {
11851185
alwaysOnTop?: boolean
11861186
/** Whether or not the window icon should be added to the taskbar. */
11871187
skipTaskbar?: boolean
1188+
/**
1189+
* Whether the file drop is enabled or not on the webview. By default it is enabled.
1190+
*
1191+
* Disabling it is required to use drag and drop on the frontend on Windows.
1192+
*/
1193+
fileDropEnabled?: boolean
11881194
}
11891195

11901196
/**

0 commit comments

Comments
 (0)