Fix back button restore in new profile cover.

This commit is contained in:
John Preston
2025-11-18 18:24:16 +04:00
parent 68c0aa7fb9
commit cd52407723

View File

@@ -946,7 +946,11 @@ void WrapWidget::showNewContent(
void WrapWidget::showNewContent(not_null<ContentMemento*> memento) {
// Validates contentGeometry().
setupTop();
showContent(createContent(memento, _controller.get()));
auto newContent = createContent(memento, _controller.get());
if (!_topBar && hasBackButton()) {
newContent->enableBackButton();
}
showContent(std::move(newContent));
}
void WrapWidget::resizeEvent(QResizeEvent *e) {