mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
parent
de4eb1e59b
commit
8615a25cd1
1 changed files with 3 additions and 2 deletions
|
@ -155,7 +155,7 @@ bool WebPage::HasButton(not_null<WebPageData*> webpage) {
|
|||
}
|
||||
|
||||
QSize WebPage::countOptimalSize() {
|
||||
if (_data->pendingTill) {
|
||||
if (_data->pendingTill || _data->failed) {
|
||||
return { 0, 0 };
|
||||
}
|
||||
|
||||
|
@ -366,7 +366,7 @@ QSize WebPage::countOptimalSize() {
|
|||
}
|
||||
|
||||
QSize WebPage::countCurrentSize(int newWidth) {
|
||||
if (_data->pendingTill) {
|
||||
if (_data->pendingTill || _data->failed) {
|
||||
return { newWidth, minHeight() };
|
||||
}
|
||||
|
||||
|
@ -891,6 +891,7 @@ void WebPage::playAnimation(bool autoplay) {
|
|||
bool WebPage::isDisplayed() const {
|
||||
const auto item = _parent->data();
|
||||
return !_data->pendingTill
|
||||
&& !_data->failed
|
||||
&& !item->Has<HistoryMessageLogEntryOriginal>();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue