restore optional history snaps

This commit is contained in:
yggverse 2025-03-12 11:52:05 +02:00
parent 0dbc8def65
commit 7803aa1c44
12 changed files with 141 additions and 72 deletions

View file

@ -24,7 +24,9 @@ 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)));
action
.load
.activate(Some(&format!("download:{}", request)), true)
}
});

View file

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

View file

@ -81,11 +81,14 @@ impl Response for Box {
action_send.connect_activate({
let form = form.clone();
move |_, _| {
item_action.load.activate(Some(&format!(
"{}?{}",
base.to_string_partial(UriHideFlags::QUERY),
Uri::escape_string(&form.text(), None, false),
)))
item_action.load.activate(
Some(&format!(
"{}?{}",
base.to_string_partial(UriHideFlags::QUERY),
Uri::escape_string(&form.text(), None, false),
)),
false,
)
}
});

View file

@ -59,11 +59,14 @@ impl Sensitive for Box {
action_send.connect_activate({
let form = form.clone();
move |_, _| {
item_action.load.activate(Some(&format!(
"{}?{}",
base.to_string_partial(UriHideFlags::QUERY),
Uri::escape_string(&form.password_entry_row.text(), None, false),
)))
item_action.load.activate(
Some(&format!(
"{}?{}",
base.to_string_partial(UriHideFlags::QUERY),
Uri::escape_string(&form.password_entry_row.text(), None, false),
)),
false,
)
}
});