Fix build for macOS.

This commit is contained in:
John Preston 2021-08-28 08:51:39 +03:00
parent d5820e7a5a
commit d684c8057c
3 changed files with 2 additions and 2 deletions

View File

@ -26,6 +26,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "boxes/self_destruction_box.h"
#include "core/application.h"
#include "core/core_settings.h"
#include "ui/chat/chat_style.h"
#include "ui/wrap/vertical_layout.h"
#include "ui/wrap/slide_wrap.h"
#include "ui/wrap/fade_wrap.h"

View File

@ -156,7 +156,6 @@ private:
Animations::Simple _backgroundFade;
CacheBackgroundRequest _backgroundCachingRequest;
CacheBackgroundResult _backgroundNext;
int _backgroundAddRotation = 0;
QSize _willCacheForArea;
crl::time _lastAreaChangeTime = 0;
std::optional<base::Timer> _cacheBackgroundTimer;

View File

@ -1432,7 +1432,7 @@ void SessionController::cacheChatTheme(const Data::CloudTheme &data) {
this,
descriptor = std::move(descriptor),
weak = base::make_weak(this)
]{
]() mutable {
crl::on_main(weak,[
this,
result = std::make_shared<Ui::ChatTheme>(std::move(descriptor))