mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
use shared title
This commit is contained in:
parent
7ad322e06e
commit
6f9c2a950a
1 changed files with 3 additions and 2 deletions
|
|
@ -420,7 +420,8 @@ fn handle(
|
||||||
} else if uri.host() != target.host() {
|
} else if uri.host() != target.host() {
|
||||||
let url = target.to_string();
|
let url = target.to_string();
|
||||||
let status = page.content.to_status_failure();
|
let status = page.content.to_status_failure();
|
||||||
status.set_title("External redirection");
|
let title = "External redirection";
|
||||||
|
status.set_title(title);
|
||||||
status.set_icon_name(Some("dialog-warning-symbolic"));
|
status.set_icon_name(Some("dialog-warning-symbolic"));
|
||||||
status.set_description(Some(&url));
|
status.set_description(Some(&url));
|
||||||
status.set_child(Some(&{
|
status.set_child(Some(&{
|
||||||
|
|
@ -436,7 +437,7 @@ fn handle(
|
||||||
button
|
button
|
||||||
}));
|
}));
|
||||||
page.set_progress(0.0);
|
page.set_progress(0.0);
|
||||||
page.set_title(&status.title());
|
page.set_title(title);
|
||||||
redirects.replace(0); // reset
|
redirects.replace(0); // reset
|
||||||
} else {
|
} else {
|
||||||
if matches!(redirect, Redirect::Permanent { .. }) {
|
if matches!(redirect, Redirect::Permanent { .. }) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue