fix: copy url to clipboard directly

This commit is contained in:
uku 2025-05-19 18:55:21 +02:00
parent a9837b7938
commit c0049cbb8d
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o
2 changed files with 7 additions and 15 deletions

View file

@ -353,9 +353,7 @@ impl AsyncComponent for Tyrolienne {
self.step = Step::Waiting;
self.progress = 0;
self.total = 1;
// TODO copy to clipboard here instead, the toast disappears after a short while
self.toast.emit(ToastInput::Show(url));
self.toast.emit(ToastInput::ShowAndCopy(url));
}
ProgressMessage::Error(e) => {
self.step = Step::Waiting;