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

@@ -164,23 +164,6 @@ void TopBarAbstract::computeIsDark() {
_isDark = (contrast > kMinAcceptableContrast);
}
TopBar::TopBar(
not_null<QWidget*> parent,
const style::PremiumCover &st,
Fn<QVariant()> clickContextOther,
rpl::producer<QString> title,
rpl::producer<TextWithEntities> about,
bool light,
bool optimizeMinistars)
: TopBar(parent, st, {
.clickContextOther = std::move(clickContextOther),
.title = std::move(title),
.about = std::move(about),
.light = light,
.optimizeMinistars = optimizeMinistars,
}) {
}
TopBar::TopBar(
not_null<QWidget*> parent,
const style::PremiumCover &st,