Links should be "openable" (#43)

This commit is contained in:
Ulyssa 2023-10-07 18:24:25 -07:00
parent 95af00ba93
commit df3148b9f5
No known key found for this signature in database
GPG key ID: F2873CA2997B83C5
4 changed files with 224 additions and 51 deletions

View file

@ -528,6 +528,14 @@ impl Application {
self.screen.current_window_mut()?.send_command(act, ctx, store).await?
},
IambAction::OpenLink(url) => {
tokio::task::spawn_blocking(move || {
return open::that(url);
});
None
},
IambAction::Verify(act, user_dev) => {
if let Some(sas) = store.application.verifications.get(&user_dev) {
self.worker.verify(act, sas.clone())?