2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Fix settings show animation.

This commit is contained in:
John Preston
2018-09-06 16:59:47 +03:00
parent 50b0b61118
commit 482ecf12ff

View File

@@ -385,7 +385,7 @@ void LayerStackWidget::hideAll(anim::type animated) {
}
void LayerStackWidget::hideTopLayer(anim::type animated) {
if (_specialLayer) {
if (_specialLayer || _mainMenu) {
hideLayers(animated);
} else {
hideAll(animated);
@@ -393,7 +393,7 @@ void LayerStackWidget::hideTopLayer(anim::type animated) {
}
bool LayerStackWidget::layerShown() const {
return _specialLayer || currentLayer();
return _specialLayer || currentLayer() || _mainMenu;
}
void LayerStackWidget::setCacheImages() {