voelin-ui: let "Choose via system dialog" always open the portal's dialog

After a share that granted a portal restore token, every later share
passed the stored token, and xdg-desktop-portal restored the earlier
choice without showing its picker: on Wayland the share dialog's only
source, "Choose via system dialog", never showed a dialog again, and
nothing could change what was shared.

That entry now never sends the token, so the portal always asks (and may
grant a new token, which is stored as before). With a stored token the
share dialog lists a second entry, "Same as last time", which restores
the last choice without the dialog. The studio's portal sources are added
without a token and ask every time; docs/studio.md claimed the token was
written back into the scene, which the UI does not do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
selikhovandClaude Opus 5.5 committed 2026-10-03 18:07:27 +03:00
1 parent 630ff848b2
commit 3e37c24836
3 files changed
+80 -28

No files matched your search

+1 -1
View File
@@ -43,7 +43,7 @@ the UI) and a `background` (replacement, below).
|---|---|---|
| `screen` | `monitor`, `backend` (`portal`, `wlroots`, `x11`, `windows`; none: this session's), `cursor` | a capture backend, frames borrowed and copied into pooled frames |
| `window` | `handle` (X11 id, `HWND`), `backend`, `cursor` | the same |
| `portal` | `restore_token`, `cursor` | the ScreenCast portal's dialog (Wayland); the token is written back so it is asked once |
| `portal` | `restore_token`, `cursor` | the ScreenCast portal's dialog (Wayland); with a `restore_token` the portal may restore its last choice without asking. The UI adds portal sources without one, so the dialog asks each time the source starts |
| `camera` | `device` (a `camera::Camera::id`; empty: the first), `size`, `fps`, `mirror` | see [Cameras](#cameras) |
| `image` | `path` | PNG or JPEG, alpha kept, read once |
| `text` | `text`, `font` (none: the bundled Inter), `size_px`, `colour`, `backdrop`, `align`, `padding` | rasterised once with `ab_glyph` |