2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

No shared media empty placeholders while loading.

This commit is contained in:
John Preston
2017-11-17 20:20:31 +04:00
parent 4aae4f9399
commit 33ae4b176a
3 changed files with 14 additions and 7 deletions

View File

@@ -866,10 +866,12 @@ void WrapWidget::resizeEvent(QResizeEvent *e) {
void WrapWidget::keyPressEvent(QKeyEvent *e) {
if (e->key() == Qt::Key_Escape) {
showBackFromStack();
} else {
SectionWidget::keyPressEvent(e);
if (hasStackHistory() || wrap() != Wrap::Layer) {
showBackFromStack();
return;
}
}
SectionWidget::keyPressEvent(e);
}
void WrapWidget::updateContentGeometry() {