linebender / druid

A data-first Rust-native UI design toolkit.
https://linebender.org/druid/
Apache License 2.0
9.44k stars 569 forks source link

Selecting multiple files #2366

Open Pianisimo opened 1 year ago

Pianisimo commented 1 year ago

Right now after creating a FileDialogOptions and showing it:

let options = FileDialogOptions::new().multi_selection(); ctx.submit_command(commands::SHOW_OPEN_PANEL.with(options))

it can only be handled with the cmd.get(commands::OPEN_FILE). I have implemented a case for cmd.get(commands::OPEN_FILES) in my AppDelegate, but couldn't find a way to call it.

xStrom commented 1 year ago

Just a quick note, that this might be related to #2332.

Pianisimo commented 1 year ago

tested on mac: only commands::OPEN_FILE is triggered when selecting one or more files. tested on windows: nothing gets triggered when selecting more than one file.

Pianisimo commented 1 year ago

rust version: 1.67.1 druid version: 0.8.3

Pianisimo commented 1 year ago

tested on linux: it is working as expected