mirror of https://github.com/procxx/kepka.git
Fix animation stopping in chat.
This commit is contained in:
parent
198de85ce5
commit
4e52da91c7
|
@ -232,6 +232,9 @@ void TabbedPanel::otherLeave() {
|
||||||
void TabbedPanel::hideFast() {
|
void TabbedPanel::hideFast() {
|
||||||
if (isHidden()) return;
|
if (isHidden()) return;
|
||||||
|
|
||||||
|
if (_selector && !_selector->isHidden()) {
|
||||||
|
_selector->beforeHiding();
|
||||||
|
}
|
||||||
_hideTimer.cancel();
|
_hideTimer.cancel();
|
||||||
_hiding = false;
|
_hiding = false;
|
||||||
_a_opacity.stop();
|
_a_opacity.stop();
|
||||||
|
|
|
@ -1892,6 +1892,9 @@ void HistoryWidget::updateControlsVisibility() {
|
||||||
updateHistoryDownVisibility();
|
updateHistoryDownVisibility();
|
||||||
updateUnreadMentionsVisibility();
|
updateUnreadMentionsVisibility();
|
||||||
if (!_history || _a_show.animating()) {
|
if (!_history || _a_show.animating()) {
|
||||||
|
if (_tabbedPanel) {
|
||||||
|
_tabbedPanel->hideFast();
|
||||||
|
}
|
||||||
hideChildren();
|
hideChildren();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -2926,6 +2929,9 @@ void HistoryWidget::showAnimated(
|
||||||
_topShadow->setVisible(params.withTopBarShadow ? false : true);
|
_topShadow->setVisible(params.withTopBarShadow ? false : true);
|
||||||
_cacheOver = App::main()->grabForShowAnimation(params);
|
_cacheOver = App::main()->grabForShowAnimation(params);
|
||||||
|
|
||||||
|
if (_tabbedPanel) {
|
||||||
|
_tabbedPanel->hideFast();
|
||||||
|
}
|
||||||
hideChildren();
|
hideChildren();
|
||||||
if (params.withTopBarShadow) _topShadow->show();
|
if (params.withTopBarShadow) _topShadow->show();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue