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

Removed repeated animation from some settings lottie icons.

This commit is contained in:
23rd
2022-05-04 00:02:52 +03:00
parent d16ccf0d9e
commit 3ff4bf77e7
4 changed files with 30 additions and 14 deletions

View File

@@ -604,13 +604,17 @@ QPointer<Ui::RpWidget> Folders::createPinnedToTop(not_null<QWidget*> parent) {
const auto divider = Ui::CreateChild<Ui::BoxContentDivider>(parent.get());
const auto verticalLayout = Ui::CreateChild<Ui::VerticalLayout>(divider);
auto icon = CreateLottieIcon(this, {
.name = u"filters"_q,
.sizeOverride = {
st::settingsFilterIconSize,
st::settingsFilterIconSize,
auto icon = CreateLottieIcon(
this,
{
.name = u"filters"_q,
.sizeOverride = {
st::settingsFilterIconSize,
st::settingsFilterIconSize,
},
},
}, st::settingsFilterIconPadding);
st::settingsFilterIconPadding,
true);
_showFinished.events(
) | rpl::start_with_next([animate = std::move(icon.animate)] {
animate();