mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-16 01:29:57 +00:00
stop iteration on action complete
This commit is contained in:
parent
dc32d00195
commit
7988e6e6b7
@ -170,7 +170,7 @@ impl Reader {
|
|||||||
// Tag is link
|
// Tag is link
|
||||||
if let Some(uri) = _links_.get(&tag) {
|
if let Some(uri) = _links_.get(&tag) {
|
||||||
// Select handler by scheme
|
// Select handler by scheme
|
||||||
match uri.scheme().as_str() {
|
return match uri.scheme().as_str() {
|
||||||
"gemini" => {
|
"gemini" => {
|
||||||
// Open new page
|
// Open new page
|
||||||
action_page_open.activate(Some(&uri.to_str().to_variant()));
|
action_page_open.activate(Some(&uri.to_str().to_variant()));
|
||||||
@ -197,7 +197,7 @@ impl Reader {
|
|||||||
for tag in iter.tags() {
|
for tag in iter.tags() {
|
||||||
// Tag is link
|
// Tag is link
|
||||||
if let Some(_) = _links_.get(&tag) {
|
if let Some(_) = _links_.get(&tag) {
|
||||||
action_tab_append.activate(None); // @TODO implement URI option
|
return action_tab_append.activate(None); // @TODO implement URI option
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user