chore: added ask and confirm dialog to tauri allowlist
mellbacon committed
May 21, 2023 at 16:48 UTC
8510afa7c4a450bff34e0baad2dd58e3936fb275
2 files changed
+3
-3
src-tauri/Cargo.toml
+1
-1
@@ -15,7 +15,7 @@ tauri-build = { version = "1.2.1", features = [] }
15
[dependencies]
16
serde_json = "1.0"
17
serde = { version = "1.0", features = ["derive"] }
18
-tauri = { version = "1.2.4", features = ["dialog-open", "dialog-save", "fs-read-dir", "fs-read-file", "fs-write-file", "path-all", "shell-open", "window-center", "window-close", "window-create", "window-hide", "window-maximize", "window-minimize", "window-print", "window-set-decorations", "window-set-focus", "window-set-fullscreen", "window-set-icon", "window-show", "window-start-dragging", "window-unmaximize", "window-unminimize"] }
18
+tauri = { version = "1.2.4", features = ["dialog-ask", "dialog-open", "dialog-save", "fs-read-dir", "fs-read-file", "fs-write-file", "path-all", "shell-open", "window-center", "window-close", "window-create", "window-hide", "window-maximize", "window-minimize", "window-print", "window-set-decorations", "window-set-focus", "window-set-fullscreen", "window-set-icon", "window-show", "window-start-dragging", "window-unmaximize", "window-unminimize"] }
19
20
[dev-dependencies]
21
windows = "0.32.0"
src-tauri/tauri.conf.json
+2
-2
@@ -35,8 +35,8 @@
35
},
36
"dialog": {
37
"all": false,
38
- "ask": false,
39
- "confirm": false,
38
+ "ask": true,
39
+ "confirm": true,
40
"message": false,
41
"open": true,
42
"save": true