mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
update callback function, fix auth status update
This commit is contained in:
parent
1316f32343
commit
873e642b10
4 changed files with 90 additions and 88 deletions
|
|
@ -247,14 +247,20 @@ impl Request for Entry {
|
|||
fn identity(&self, profile: &Rc<Profile>) {
|
||||
if let Some(uri) = self.uri() {
|
||||
if ["gemini", "titan"].contains(&uri.scheme().as_str()) {
|
||||
return identity::default(profile, &uri, {
|
||||
let profile = profile.clone();
|
||||
let this = self.clone();
|
||||
move || {
|
||||
this.update(&profile);
|
||||
this.emit_activate();
|
||||
} // on apply
|
||||
})
|
||||
return identity::default(
|
||||
profile,
|
||||
&uri,
|
||||
&Rc::new({
|
||||
let profile = profile.clone();
|
||||
let this = self.clone();
|
||||
move |is_reload| {
|
||||
this.update(&profile);
|
||||
if is_reload {
|
||||
this.emit_activate();
|
||||
}
|
||||
}
|
||||
}),
|
||||
)
|
||||
.present(Some(self));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue