mirror of https://github.com/procxx/kepka.git
Fix possible crash in EditCaptionBox.
This commit is contained in:
parent
a586b18dfb
commit
6c2a29b83f
|
@ -192,7 +192,6 @@ EditCaptionBox::EditCaptionBox(
|
|||
maxH);
|
||||
_thumbnailImageLoaded = true;
|
||||
};
|
||||
prepareStreamedPreview();
|
||||
} else {
|
||||
Assert(_photoMedia != nullptr);
|
||||
|
||||
|
@ -328,6 +327,10 @@ EditCaptionBox::EditCaptionBox(
|
|||
) | rpl::start_with_next([&](bool checked) {
|
||||
_asFile = checked;
|
||||
}, _wayWrap->lifetime());
|
||||
|
||||
if (_animated) {
|
||||
prepareStreamedPreview();
|
||||
}
|
||||
}
|
||||
|
||||
EditCaptionBox::~EditCaptionBox() = default;
|
||||
|
|
Loading…
Reference in New Issue