app: pick the recordings folder and cut paths to the row

The folder was a text field, and the path was always cut to its last
two folders, so a wide window dropped folders it had room for and a
narrow one showed only the tail.

The row now shows the path the settings hold, cut in the middle at
whatever width the labels and the button leave it, with Select folder
opening the system's folder dialog through rune's native-file-dialog
feature. Form keeps no copy of the path any more; the draft is the one
place it lives.

The quick tab's recordings folder and the daemon tab's log file get the
same cut, and short_path goes.
This commit is contained in:
vhaudiquet committed 2026-11-23 23:53:21 +01:00
1 parent dbdec05752
commit 1bb2874753
5 files changed
+109 -30

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ path = "src/main.rs"
winresource = "0.1"
[dependencies]
rune = { path = "vendor/rune/crates/rune" }
rune = { path = "vendor/rune/crates/rune", features = ["native-file-dialog"] }
rune-kit = { path = "vendor/rune/crates/rune-kit" }
rune-notify = { path = "vendor/rune/crates/rune-notify" }