mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Fix crash in premium preview.
This commit is contained in:
@@ -64,7 +64,9 @@ Bubble::Bubble(
|
||||
const auto texts = _textFactory(0);
|
||||
_numberAnimation.setText(texts.counter, 0);
|
||||
_numberAnimation.finishAnimating();
|
||||
if (!texts.additional.isEmpty()) {
|
||||
_additional.setText(_st.additionalStyle, texts.additional);
|
||||
}
|
||||
}
|
||||
|
||||
crl::time Bubble::SlideNoDeflectionDuration() {
|
||||
@@ -120,8 +122,10 @@ void Bubble::setCounter(int value) {
|
||||
_counter = value;
|
||||
const auto texts = _textFactory(value);
|
||||
_numberAnimation.setText(texts.counter, value);
|
||||
if (!texts.additional.isEmpty()) {
|
||||
_additional.setText(_st.additionalStyle, texts.additional);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Bubble::setTailEdge(EdgeProgress edge) {
|
||||
|
||||
Reference in New Issue
Block a user