2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-10-27 15:25:58 +00:00

Differ file download failure reasons

..and uncomment the code for handling incorrect permissions
This commit is contained in:
Ilya Fedin
2023-01-05 17:32:51 +04:00
committed by John Preston
parent 7307f0b1a5
commit 173108a9cb
9 changed files with 47 additions and 37 deletions

View File

@@ -279,11 +279,11 @@ void LoadCloudFile(
if (const auto onstack = progress) {
onstack();
}
}, [=, &file](bool started) {
}, [=, &file](FileLoader::Error error) {
finish(file);
file.flags |= CloudFile::Flag::Failed;
if (const auto onstack = fail) {
onstack(started);
onstack(error.started);
}
}, [=, &file] {
finish(file);