mirror of https://github.com/procxx/kepka.git
Added delay for clicked callback of edit media button.
This commit is contained in:
parent
392d90dc1d
commit
839feed329
|
@ -522,7 +522,10 @@ void EditCaptionBox::createEditMediaButton() {
|
||||||
// Create edit media button.
|
// Create edit media button.
|
||||||
_editMedia.create(this, st::editMediaButton);
|
_editMedia.create(this, st::editMediaButton);
|
||||||
updateEditMediaButton();
|
updateEditMediaButton();
|
||||||
_editMedia->setClickedCallback(buttonCallback);
|
_editMedia->setClickedCallback(
|
||||||
|
App::LambdaDelayed(st::historyAttach.ripple.hideDuration, this, [=] {
|
||||||
|
buttonCallback();
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditCaptionBox::prepare() {
|
void EditCaptionBox::prepare() {
|
||||||
|
|
Loading…
Reference in New Issue