mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Refresh choose sticker animation data on lang update.
This commit is contained in:
parent
cd8d257c70
commit
d29a1f5cd2
1 changed files with 16 additions and 0 deletions
|
@ -741,6 +741,14 @@ void Instance::applyValue(const QByteArray &key, const QByteArray &value) {
|
||||||
} else if (!_derived->_nonDefaultSet[key]) {
|
} else if (!_derived->_nonDefaultSet[key]) {
|
||||||
_derived->_values[key] = std::move(value);
|
_derived->_values[key] = std::move(value);
|
||||||
}
|
}
|
||||||
|
if (key == tr::lng_send_action_choose_sticker.base
|
||||||
|
|| key == tr::lng_user_action_choose_sticker.base) {
|
||||||
|
if (!_derived) {
|
||||||
|
updateChoosingStickerReplacement();
|
||||||
|
} else {
|
||||||
|
_derived->updateChoosingStickerReplacement();
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -771,6 +779,14 @@ void Instance::resetValue(const QByteArray &key) {
|
||||||
} else if (!_derived->_nonDefaultSet[keyIndex]) {
|
} else if (!_derived->_nonDefaultSet[keyIndex]) {
|
||||||
_derived->_values[keyIndex] = GetOriginalValue(keyIndex);
|
_derived->_values[keyIndex] = GetOriginalValue(keyIndex);
|
||||||
}
|
}
|
||||||
|
if (keyIndex == tr::lng_send_action_choose_sticker.base
|
||||||
|
|| keyIndex == tr::lng_user_action_choose_sticker.base) {
|
||||||
|
if (!_derived) {
|
||||||
|
updateChoosingStickerReplacement();
|
||||||
|
} else {
|
||||||
|
_derived->updateChoosingStickerReplacement();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue