2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Refresh wallpaper file references.

This commit is contained in:
John Preston
2019-01-16 22:03:04 +04:00
parent 466c6da5e3
commit e59a68cd68
4 changed files with 33 additions and 3 deletions

View File

@@ -1422,9 +1422,12 @@ void MainWidget::setChatBackground(const Data::WallPaper &background) {
_background = std::make_unique<SettingBackground>();
_background->data = background;
if (_background->data.document) {
_background->data.document->save(Data::FileOrigin(), QString());
_background->data.document->save(
Data::FileOriginWallpapers(),
QString());
} else if (_background->data.thumb) {
_background->data.thumb->loadEvenCancelled(Data::FileOrigin());
_background->data.thumb->loadEvenCancelled(
Data::FileOriginWallpapers());
}
checkChatBackground();