2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-10-17 14:36:45 +00:00

Hide send message in Info for current chat.

This commit is contained in:
John Preston
2017-09-20 21:40:23 +03:00
parent 3db696d52f
commit e1ba9f8ff8
19 changed files with 111 additions and 65 deletions

View File

@@ -66,7 +66,9 @@ RippleButton::RippleButton(QWidget *parent, const style::RippleAnimation &st) :
, _st(st) {
}
void RippleButton::setForceRippled(bool rippled, SetForceRippledWay way) {
void RippleButton::setForceRippled(
bool rippled,
anim::type animated) {
if (_forceRippled != rippled) {
_forceRippled = rippled;
if (_forceRippled) {
@@ -80,7 +82,7 @@ void RippleButton::setForceRippled(bool rippled, SetForceRippledWay way) {
_ripple->lastStop();
}
}
if (way == SetForceRippledWay::SkipAnimation && _ripple) {
if (animated == anim::type::instant && _ripple) {
_ripple->lastFinish();
}
update();