mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Accept binary_guard in crl::guard().
This commit is contained in:
@@ -1624,14 +1624,10 @@ base::binary_guard ReadImageAsync(
|
||||
if (postprocess) {
|
||||
image = postprocess(std::move(image));
|
||||
}
|
||||
crl::on_main([
|
||||
guard = std::move(guard),
|
||||
crl::on_main(std::move(guard), [
|
||||
image = std::move(image),
|
||||
callback = std::move(callback)
|
||||
]() mutable {
|
||||
if (!guard) {
|
||||
return;
|
||||
}
|
||||
callback(std::move(image));
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user