mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 15:35:51 +00:00
started media redesign (does not compile!)
This commit is contained in:
@@ -274,7 +274,7 @@ QSize StickerPreviewWidget::currentDimensions() const {
|
||||
QPixmap StickerPreviewWidget::currentImage() const {
|
||||
if (_doc && _cacheStatus != CacheLoaded) {
|
||||
bool already = !_doc->already().isEmpty(), hasdata = !_doc->data.isEmpty();
|
||||
if (!_doc->loader && _doc->status != FileFailed && !already && !hasdata) {
|
||||
if (!already && !hasdata && !_doc->loader && _doc->status == FileReady) {
|
||||
_doc->save(QString());
|
||||
}
|
||||
if (_doc->sticker()->img->isNull() && (already || hasdata)) {
|
||||
|
Reference in New Issue
Block a user