delegate history_snap action to protocol driver implementation

This commit is contained in:
yggverse 2025-03-12 11:00:16 +02:00
parent 68b3119bb1
commit 33d5d414ac
16 changed files with 124 additions and 147 deletions

View file

@ -24,9 +24,7 @@ pub fn build(mime: &str, download: Option<(&Rc<ItemAction>, &Uri)>) -> StatusPag
let action = action.clone();
let request = request.clone();
move |_| {
action
.load
.activate(Some(&format!("download:{}", request)), true);
action.load.activate(Some(&format!("download:{}", request)));
}
});

View file

@ -388,8 +388,7 @@ impl Gemini {
// Select link handler by scheme
return match uri.scheme().as_str() {
"gemini" | "titan" => {
// Open new page in browser
item_action.load.activate(Some(&uri.to_str()), true);
item_action.load.activate(Some(&uri.to_str()))
}
// Scheme not supported, delegate
_ => UriLauncher::new(&uri.to_str()).launch(