Skip to content

Commit

Permalink
fix(api.js): add fileDropEnabled to WindowOptions, closes #2968 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed Dec 9, 2021
1 parent 875c35e commit 1bfc32a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changes/api-WebviewWindow-fileDropEnabled.md
@@ -0,0 +1,5 @@
---
"api": patch
---

Add `fileDropEnabled` property to `WindowOptions` so you can now disable it when creating windows from js.
6 changes: 6 additions & 0 deletions tooling/api/src/window.ts
Expand Up @@ -1185,6 +1185,12 @@ interface WindowOptions {
alwaysOnTop?: boolean
/** Whether or not the window icon should be added to the taskbar. */
skipTaskbar?: boolean
/**
* Whether the file drop is enabled or not on the webview. By default it is enabled.
*
* Disabling it is required to use drag and drop on the frontend on Windows.
*/
fileDropEnabled?: boolean
}

/**
Expand Down

0 comments on commit 1bfc32a

Please sign in to comment.