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:
1 parent
630ff848b2
commit
3e37c24836
3 files changed
+80
-28
No files matched your search
@@ -414,7 +414,8 @@ impl App {
|
||||
let test_pattern = cfg!(debug_assertions)
|
||||
|| self.demo
|
||||
|| std::env::var("VOELIN_TEST_PATTERN").is_ok_and(|v| v == "1");
|
||||
let sources = match self.video.sources(test_pattern) {
|
||||
let restorable = self.settings.portal_restore_token.is_some();
|
||||
let sources = match self.video.sources(test_pattern, restorable) {
|
||||
Ok(sources) => {
|
||||
if self.share.is_none() {
|
||||
self.share_error.clear();
|
||||
|
||||
Reference in new issue
Block a user