ui: one clipboard path, and Copy invite link in the voice header
Copying went through a hidden text field on the phone's voice screen only. It moves into MainWindow: any screen calls Nav.copy(text), and Bridge.copied() confirms it in one toast, shown again when its text is the same as the last copy's. The invite leaves its own message for that toast (the channel and the link) instead of a status of its own, so a copy never shows two. The desktop voice channel view gets the same Invite as a Copy invite link button next to Chat only. Icons.channel is the speaker, for the channel spots that use it later. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AVRENKftQqGoEeswiR9TDQ
This commit is contained in:
1 parent
3c47bc682f
commit
61636b23c8
11 files changed
+67
-18
No files matched your search
@@ -4,7 +4,7 @@ use slint::ComponentHandle;
|
||||
use voelin_core::Command;
|
||||
use voelin_model::ChannelId;
|
||||
|
||||
use crate::app::{Bridge, MainWindow, with_app};
|
||||
use crate::app::{App, Bridge, MainWindow, with_app};
|
||||
|
||||
pub(super) fn wire(ui: &MainWindow) {
|
||||
let bridge = ui.global::<Bridge>();
|
||||
@@ -56,4 +56,8 @@ pub(super) fn wire(ui: &MainWindow) {
|
||||
with_app(|app| app.client_playback_changed(&form));
|
||||
});
|
||||
bridge.on_invite(|| with_app(|app| app.invite_link()).unwrap_or_default().into());
|
||||
// Nav.copy, from any screen.
|
||||
bridge.on_copied(|| {
|
||||
with_app(App::copied);
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user