MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / displayLoading

Method displayLoading

Telegram/SourceFiles/data/data_photo.cpp:193–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193bool 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
202void PhotoData::cancel() {
203 if (loading()) {

Callers 10

radialLoadingMethod · 0.45
paintMethod · 0.45
loadingMethod · 0.45
drawMethod · 0.45
drawMethod · 0.45
drawMethod · 0.45
drawGroupedMethod · 0.45
drawMethod · 0.45
drawGroupedMethod · 0.45
paintMethod · 0.45

Calls 5

PhotoSizeIndexFunction · 0.85
loadingLocalMethod · 0.80
autoLoadingMethod · 0.80
getMethod · 0.45
finishedMethod · 0.45

Tested by

no test coverage detected