reduce timeout before rendering qr
This commit is contained in:
parent
6dfef53243
commit
dd113c3548
@ -283,8 +283,7 @@ pub fn process_edit_messages(msg: EditMsg, model: &mut Model, orders: &mut impl
|
|||||||
};
|
};
|
||||||
let code = link_delta.code;
|
let code = link_delta.code;
|
||||||
model.handle_render = None;
|
model.handle_render = None;
|
||||||
model.handle_timeout =
|
model.handle_timeout = Some(orders.perform_cmd_with_handle(cmds::timeout(300, || {
|
||||||
Some(orders.perform_cmd_with_handle(cmds::timeout(1000, || {
|
|
||||||
Msg::Edit(EditMsg::GenerateQr(code))
|
Msg::Edit(EditMsg::GenerateQr(code))
|
||||||
})));
|
})));
|
||||||
}
|
}
|
||||||
@ -332,7 +331,7 @@ pub fn process_edit_messages(msg: EditMsg, model: &mut Model, orders: &mut impl
|
|||||||
link_delta.code = s.clone();
|
link_delta.code = s.clone();
|
||||||
model.handle_render = None;
|
model.handle_render = None;
|
||||||
model.handle_timeout =
|
model.handle_timeout =
|
||||||
Some(orders.perform_cmd_with_handle(cmds::timeout(2000, || {
|
Some(orders.perform_cmd_with_handle(cmds::timeout(300, || {
|
||||||
Msg::Edit(EditMsg::GenerateQr(s))
|
Msg::Edit(EditMsg::GenerateQr(s))
|
||||||
})));
|
})));
|
||||||
model.dialog = Dialog::EditLink {
|
model.dialog = Dialog::EditLink {
|
||||||
|
Loading…
Reference in New Issue
Block a user