mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Accept binary_guard in crl::guard().
This commit is contained in:
@@ -722,16 +722,12 @@ void BackgroundPreviewBox::checkLoadedDocument() {
|
||||
: PrepareScaledNonPattern(
|
||||
Data::PrepareBlurredBackground(image),
|
||||
Images::Option(0));
|
||||
crl::on_main([
|
||||
crl::on_main(std::move(guard), [
|
||||
this,
|
||||
image = std::move(image),
|
||||
scaled = std::move(scaled),
|
||||
blurred = std::move(blurred),
|
||||
guard = std::move(guard)
|
||||
blurred = std::move(blurred)
|
||||
]() mutable {
|
||||
if (!guard) {
|
||||
return;
|
||||
}
|
||||
_full = std::move(image);
|
||||
setScaledFromImage(std::move(scaled), std::move(blurred));
|
||||
update();
|
||||
|
||||
Reference in New Issue
Block a user