mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-22 21:30:44 +02:00
fix(dialog): iOS file picker default to file selection instead of photo (#1706)
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"dialog": patch:breaking
|
||||||
|
---
|
||||||
|
|
||||||
|
If no filters are specified, the file picker dialog now defaults to a file selection instead of photos.
|
||||||
@@ -48,7 +48,7 @@ class DialogPlugin: Plugin {
|
|||||||
|
|
||||||
let parsedTypes = parseFiltersOption(args.filters ?? [])
|
let parsedTypes = parseFiltersOption(args.filters ?? [])
|
||||||
|
|
||||||
var isMedia = true
|
var isMedia = !parsedTypes.isEmpty
|
||||||
var uniqueMimeType: Bool? = nil
|
var uniqueMimeType: Bool? = nil
|
||||||
var mimeKind: String? = nil
|
var mimeKind: String? = nil
|
||||||
if !parsedTypes.isEmpty {
|
if !parsedTypes.isEmpty {
|
||||||
|
|||||||
Reference in New Issue
Block a user