implement is_history record argument for load action

This commit is contained in:
yggverse 2024-11-12 08:23:19 +02:00
parent 60d4a94ff3
commit 47b2be986b
7 changed files with 49 additions and 34 deletions

View file

@ -247,7 +247,7 @@ impl Reader {
return match uri.scheme().as_str() {
"gemini" => {
// Open new page in browser
actions.1.load().activate(Some(&uri.to_str()));
actions.1.load().activate(Some(&uri.to_str()), true);
}
// Scheme not supported, delegate
_ => UriLauncher::new(&uri.to_str()).launch(

View file

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

View file

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

View file

@ -48,7 +48,7 @@ impl Widget {
});
gobject.connect_activate(move |this| {
tab_action.load().activate(Some(&this.text()));
tab_action.load().activate(Some(&this.text()), true);
});
gobject.connect_state_flags_changed({