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

Save wallpaper information.

This commit is contained in:
John Preston
2019-01-16 21:26:26 +04:00
parent b8cb792831
commit 466c6da5e3
8 changed files with 211 additions and 159 deletions

View File

@@ -1508,14 +1508,14 @@ void MainWidget::setGeneratedBackground(QImage &&image) {
using namespace Window::Theme;
if (image.isNull()) {
Background()->setImage(kDefaultBackground);
Background()->setImage({ kDefaultBackground });
} else if (false
|| _background->data.id == kInitialBackground
|| _background->data.id == kDefaultBackground) {
Background()->setImage(_background->data.id);
Background()->setImage(_background->data);
} else {
Background()->setImage(
_background->data.id,
_background->data,
std::move(image));
}
const auto tile = (_background->data.id == kInitialBackground);