2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Removed redundant constructor from Ui::Premium::TopBar.

This commit is contained in:
23rd
2024-05-16 16:49:59 +03:00
committed by John Preston
parent ac2f35f12b
commit bc7aa91fbb
5 changed files with 35 additions and 52 deletions

View File

@@ -1064,9 +1064,11 @@ QPointer<Ui::RpWidget> Premium::createPinnedToTop(
return Ui::CreateChild<Ui::Premium::TopBar>(
parent.get(),
st::defaultPremiumCover,
clickContextOther,
std::move(title),
std::move(about));
Ui::Premium::TopBarDescriptor{
.clickContextOther = clickContextOther,
.title = std::move(title),
.about = std::move(about),
});
}();
_setPaused = [=](bool paused) {
content->setPaused(paused);