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

Method initialRead

Telegram/SourceFiles/window/themes/window_theme.cpp:495–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493}
494
495void ChatBackground::initialRead() {
496 if (started()) {
497 return;
498 }
499 if (_themeObject.pathAbsolute.isEmpty() && !nightMode()) {
500 applyDefaultThemeAccentColorizer();
501 }
502 if (!Local::readBackground()) {
503 set(Data::ThemeWallPaper());
504 }
505 if (_localStoredTileDayValue) {
506 _tileDayValue = *_localStoredTileDayValue;
507 }
508 if (_localStoredTileNightValue) {
509 _tileNightValue = *_localStoredTileNightValue;
510 }
511}
512
513void ChatBackground::start() {
514 saveAdjustableColors();

Callers

nothing calls this directly

Calls 4

startedFunction · 0.85
readBackgroundFunction · 0.85
ThemeWallPaperFunction · 0.85
isEmptyMethod · 0.45

Tested by

no test coverage detected