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

Accept binary_guard in crl::guard().

This commit is contained in:
John Preston
2019-02-17 15:52:57 +04:00
parent 4d987f7278
commit d208236994
8 changed files with 30 additions and 36 deletions

View File

@@ -426,16 +426,12 @@ void FileLoader::loadLocal(const Storage::Cache::Key &key) {
QByteArray &&value,
QImage &&image,
QByteArray &&format) mutable {
crl::on_main([
crl::on_main(std::move(guard), [
=,
value = std::move(value),
image = std::move(image),
format = std::move(format),
guard = std::move(guard)
format = std::move(format)
]() mutable {
if (!guard) {
return;
}
localLoaded(
StorageImageSaved(std::move(value)),
format,