mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Save wallpaper information.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user