| 191 | } |
| 192 | |
| 193 | bool PhotoData::displayLoading() const { |
| 194 | const auto index = PhotoSizeIndex(PhotoSize::Large); |
| 195 | if (const auto loader = _images[index].loader.get()) { |
| 196 | return !loader->finished() |
| 197 | && (!loader->loadingLocal() || !loader->autoLoading()); |
| 198 | } |
| 199 | return (uploading() && !waitingForAlbum()); |
| 200 | } |
| 201 | |
| 202 | void PhotoData::cancel() { |
| 203 | if (loading()) { |
no test coverage detected