window: Let the user select multiple files to open.

Uses code that drag and drop already uses. It's kinda ugly because the
file dialog returns a ListModel.

As an added bonus, since the button responds to the action "win.open",
it will also allow open multiple files with the primary menu.
It would be a good idea to change the "Open…" label in the primary menu though.

Closes #191
This commit is contained in:
Huan Thieu Nguyen 2023-05-21 23:41:22 +02:00
parent 8804938859
commit c6897da62d
2 changed files with 11 additions and 3 deletions

View file

@ -182,7 +182,7 @@
<child>
<object class="GtkButton">
<property name="halign">center</property>
<property name="label" translatable="yes">_Open File…</property>
<property name="label" translatable="yes">_Open Files…</property>
<property name="use-underline">True</property>
<property name="action-name">win.open</property>
<style>