mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-05 16:04:15 +00:00
reorganize duplicated members
This commit is contained in:
parent
27ec38fa45
commit
cb17361f31
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user