Merge pull request #1049 from flowln/waiting_for_news_-_-

This commit is contained in:
Sefa Eyeoglu 2022-08-18 22:53:41 +02:00
parent 34bab3e1b2
commit 1e1a1cef05
No known key found for this signature in database
GPG Key ID: C10411294912A422

View File

@ -1445,6 +1445,7 @@ void MainWindow::updateNewsLabel()
{
newsLabel->setText(tr("Loading news..."));
newsLabel->setEnabled(false);
ui->actionMoreNews->setVisible(false);
}
else
{
@ -1453,11 +1454,13 @@ void MainWindow::updateNewsLabel()
{
newsLabel->setText(entries[0]->title);
newsLabel->setEnabled(true);
ui->actionMoreNews->setVisible(true);
}
else
{
newsLabel->setText(tr("No news available."));
newsLabel->setEnabled(false);
ui->actionMoreNews->setVisible(false);
}
}
}