mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Save themes, apply and close editor on save.
This commit is contained in:
@@ -568,6 +568,17 @@ void DocumentData::validateLottieSticker() {
|
||||
}
|
||||
}
|
||||
|
||||
void DocumentData::setDataAndCache(const QByteArray &data) {
|
||||
setData(data);
|
||||
if (saveToCache() && data.size() <= Storage::kMaxFileInMemory) {
|
||||
session().data().cache().put(
|
||||
cacheKey(),
|
||||
Storage::Cache::Database::TaggedValue(
|
||||
base::duplicate(data),
|
||||
cacheTag()));
|
||||
}
|
||||
}
|
||||
|
||||
bool DocumentData::checkWallPaperProperties() {
|
||||
if (type == WallPaperDocument) {
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user