From 7988e6e6b76506bdd809d56b2caf5f7c13705c3a Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 14 Oct 2024 04:27:29 +0300 Subject: [PATCH] stop iteration on action complete --- .../window/tab/item/page/content/text/gemini/reader.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/browser/window/tab/item/page/content/text/gemini/reader.rs b/src/app/browser/window/tab/item/page/content/text/gemini/reader.rs index b1091afc..6c779879 100644 --- a/src/app/browser/window/tab/item/page/content/text/gemini/reader.rs +++ b/src/app/browser/window/tab/item/page/content/text/gemini/reader.rs @@ -170,7 +170,7 @@ impl Reader { // Tag is link if let Some(uri) = _links_.get(&tag) { // Select handler by scheme - match uri.scheme().as_str() { + return match uri.scheme().as_str() { "gemini" => { // Open new page action_page_open.activate(Some(&uri.to_str().to_variant())); @@ -197,7 +197,7 @@ impl Reader { for tag in iter.tags() { // Tag is link 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 } } }