reorganize duplicated members

This commit is contained in:
yggverse 2025-01-19 13:11:46 +02:00
parent 27ec38fa45
commit cb17361f31

View File

@ -417,7 +417,8 @@ fn handle(page: &Rc<Page>, response: client::Response) {
page.browser_action.update.activate(Some(&page.id));
}
},
Response::Input(this) => match this {
Response::Input(this) => {
match this {
Input::Response {
base,
title: response_title,
@ -429,10 +430,7 @@ fn handle(page: &Rc<Page>, response: client::Response) {
Some(1024),
);
page.status.replace(Status::Input { time: now() });
page.title.replace(response_title);
page.browser_action.update.activate(Some(&page.id));
}
Input::Sensitive {
base,
@ -445,10 +443,7 @@ fn handle(page: &Rc<Page>, response: client::Response) {
Some(1024),
);
page.status.replace(Status::Input { time: now() });
page.title.replace(response_title);
page.browser_action.update.activate(Some(&page.id));
}
Input::Titan(this) => {
page.input.set_new_titan(this, {
@ -466,13 +461,12 @@ fn handle(page: &Rc<Page>, response: client::Response) {
}
}
});
page.status.replace(Status::Input { time: now() });
page.title.replace("Titan input".into());
}
};
page.status.replace(Status::Input { time: now() });
page.browser_action.update.activate(Some(&page.id));
}
},
Response::Redirect(this) => match this {
Redirect::Background(request) => {
load(&page, Some(&request.as_uri().to_string()), false)