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

Read background image async.

This commit is contained in:
John Preston
2019-01-16 16:39:35 +04:00
parent 0f9c2a62fe
commit b8cb792831
2 changed files with 65 additions and 36 deletions

View File

@@ -454,6 +454,8 @@ private:
void ensureFirstColumnResizeAreaCreated();
void ensureThirdColumnResizeAreaCreated();
void setGeneratedBackground(QImage &&image);
not_null<Window::Controller*> _controller;
bool _started = false;
@@ -543,7 +545,8 @@ private:
QMap<mtpRequestId, PeerData*> _viewsIncrementByRequest;
SingleTimer _viewsIncrementTimer;
std::unique_ptr<Data::WallPaper> _background;
struct SettingBackground;
std::unique_ptr<SettingBackground> _background;
bool _firstColumnResizing = false;
int _firstColumnResizingShift = 0;