mirror of
https://github.com/youwen5/iamb.git
synced 2025-06-19 21:29:52 -07:00
Links should be "openable" (#43)
This commit is contained in:
parent
95af00ba93
commit
df3148b9f5
4 changed files with 224 additions and 51 deletions
|
@ -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())?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue