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

Method chatBackgroundProgress

Telegram/SourceFiles/mainwidget.cpp:1230–1239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1228}
1229
1230float64 MainWidget::chatBackgroundProgress() const {
1231 if (_background) {
1232 if (_background->generating) {
1233 return 1.;
1234 } else if (_background->data.document()) {
1235 return _background->dataMedia->progress();
1236 }
1237 }
1238 return 1.;
1239}
1240
1241void MainWidget::checkChatBackground() {
1242 if (!_background || _background->generating) {

Callers 1

radialProgressMethod · 0.80

Calls 2

documentMethod · 0.45
progressMethod · 0.45

Tested by

no test coverage detected