2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

started media redesign (does not compile!)

This commit is contained in:
John Preston
2015-12-08 22:07:50 +03:00
parent 0b96dd5362
commit 6bad3b4d7e
12 changed files with 575 additions and 436 deletions

View File

@@ -1332,7 +1332,7 @@ void StickerPanInner::paintEvent(QPaintEvent *e) {
sticker->thumb->load();
} else {
bool already = !sticker->already().isEmpty(), hasdata = !sticker->data.isEmpty();
if (!sticker->loader && sticker->status != FileFailed && !already && !hasdata) {
if (!already && !hasdata && !sticker->loader && sticker->status == FileReady) {
sticker->save(QString());
}
if (sticker->sticker()->img->isNull() && (already || hasdata)) {
@@ -1521,7 +1521,7 @@ void StickerPanInner::preloadImages() {
sticker->thumb->load();
} else {
bool already = !sticker->already().isEmpty(), hasdata = !sticker->data.isEmpty();
if (!sticker->loader && sticker->status != FileFailed && !already && !hasdata) {
if (!already && !hasdata && !sticker->loader && sticker->status == FileReady) {
sticker->save(QString());
}
//if (sticker->sticker->img->isNull() && (already || hasdata)) {