mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 23:53:58 +02:00
Fix possible crash in EditCaptionBox.
This commit is contained in:
parent
a586b18dfb
commit
6c2a29b83f
1 changed files with 4 additions and 1 deletions
|
@ -192,7 +192,6 @@ EditCaptionBox::EditCaptionBox(
|
||||||
maxH);
|
maxH);
|
||||||
_thumbnailImageLoaded = true;
|
_thumbnailImageLoaded = true;
|
||||||
};
|
};
|
||||||
prepareStreamedPreview();
|
|
||||||
} else {
|
} else {
|
||||||
Assert(_photoMedia != nullptr);
|
Assert(_photoMedia != nullptr);
|
||||||
|
|
||||||
|
@ -328,6 +327,10 @@ EditCaptionBox::EditCaptionBox(
|
||||||
) | rpl::start_with_next([&](bool checked) {
|
) | rpl::start_with_next([&](bool checked) {
|
||||||
_asFile = checked;
|
_asFile = checked;
|
||||||
}, _wayWrap->lifetime());
|
}, _wayWrap->lifetime());
|
||||||
|
|
||||||
|
if (_animated) {
|
||||||
|
prepareStreamedPreview();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
EditCaptionBox::~EditCaptionBox() = default;
|
EditCaptionBox::~EditCaptionBox() = default;
|
||||||
|
|
Loading…
Add table
Reference in a new issue