Fixed spoilers with animations disabled.
This commit is contained in:
parent
9da4e1e731
commit
1f845ea919
1 changed files with 4 additions and 0 deletions
|
|
@ -6,6 +6,7 @@
|
|||
//
|
||||
#include "ui/spoiler_click_handler.h"
|
||||
|
||||
#include "ui/effects/animation_value.h"
|
||||
#include "ui/text/text_entity.h"
|
||||
|
||||
ClickHandler::TextEntity SpoilerClickHandler::getTextEntity() const {
|
||||
|
|
@ -28,6 +29,9 @@ crl::time SpoilerClickHandler::startMs() const {
|
|||
}
|
||||
|
||||
void SpoilerClickHandler::setStartMs(crl::time value) {
|
||||
if (anim::Disabled()) {
|
||||
return;
|
||||
}
|
||||
_startMs = value;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue