mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Closed beta 10020002: Use default color theme link in Settings.
This commit is contained in:
@@ -149,6 +149,10 @@ public:
|
||||
void setActive(bool active);
|
||||
void setPressed(bool pressed);
|
||||
|
||||
void invalidateCache() {
|
||||
_check.invalidateCache();
|
||||
}
|
||||
|
||||
private:
|
||||
void startAnimation();
|
||||
|
||||
@@ -283,6 +287,12 @@ void Photo::clickHandlerPressedChanged(const ClickHandlerPtr &action, bool press
|
||||
}
|
||||
}
|
||||
|
||||
void Photo::invalidateCache() {
|
||||
if (_check) {
|
||||
_check->invalidateCache();
|
||||
}
|
||||
}
|
||||
|
||||
Video::Video(DocumentData *video, HistoryItem *parent) : RadialProgressItem(parent)
|
||||
, _data(video)
|
||||
, _duration(formatDurationText(_data->duration()))
|
||||
@@ -431,6 +441,12 @@ void Video::clickHandlerPressedChanged(const ClickHandlerPtr &action, bool press
|
||||
}
|
||||
}
|
||||
|
||||
void Video::invalidateCache() {
|
||||
if (_check) {
|
||||
_check->invalidateCache();
|
||||
}
|
||||
}
|
||||
|
||||
void Video::getState(ClickHandlerPtr &link, HistoryCursorState &cursor, int x, int y) const {
|
||||
bool loaded = _data->loaded();
|
||||
|
||||
|
Reference in New Issue
Block a user