mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Improve unread counter for HistoryTopBarWidget.
This commit is contained in:
@@ -509,7 +509,7 @@ void WrapWidget::showBackFromStack() {
|
||||
last.section.get(),
|
||||
params);
|
||||
//_anotherTabMemento = std::move(last.anotherTab);
|
||||
} else {
|
||||
} else if (wrap() != Wrap::Layer) {
|
||||
_controller->window()->showBackFromStack(params);
|
||||
}
|
||||
}
|
||||
@@ -864,6 +864,14 @@ void WrapWidget::resizeEvent(QResizeEvent *e) {
|
||||
updateContentGeometry();
|
||||
}
|
||||
|
||||
void WrapWidget::keyPressEvent(QKeyEvent *e) {
|
||||
if (e->key() == Qt::Key_Escape) {
|
||||
showBackFromStack();
|
||||
} else {
|
||||
SectionWidget::keyPressEvent(e);
|
||||
}
|
||||
}
|
||||
|
||||
void WrapWidget::updateContentGeometry() {
|
||||
if (_content) {
|
||||
_topShadow->resizeToWidth(width());
|
||||
|
Reference in New Issue
Block a user