mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
add reload request option on cancel
This commit is contained in:
parent
cf4261cac2
commit
d93c111cbd
6 changed files with 58 additions and 13 deletions
|
|
@ -23,6 +23,15 @@ impl Gemini {
|
|||
let widget = Rc::new(Widget::new(profile.clone(), &auth_url));
|
||||
|
||||
// Init events
|
||||
widget.on_cancel({
|
||||
let action = action.clone();
|
||||
move |is_reload_request| {
|
||||
if is_reload_request {
|
||||
action.reload.activate();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
widget.on_apply({
|
||||
let widget = widget.clone();
|
||||
move |response| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue