mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Show patterns with colors in galery.
This commit is contained in:
@@ -3073,9 +3073,7 @@ void Session::setWallpapers(const QVector<MTPWallPaper> &data, int32 hash) {
|
||||
).get());
|
||||
for (const auto &paper : data) {
|
||||
paper.match([&](const MTPDwallPaper &paper) {
|
||||
if (paper.is_pattern()) {
|
||||
return;
|
||||
} else if (const auto parsed = Data::WallPaper::Create(paper)) {
|
||||
if (const auto parsed = Data::WallPaper::Create(paper)) {
|
||||
_wallpapers.push_back(*parsed);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user