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

This commit is contained in:
Sefa Eyeoglu 2022-08-18 22:53:41 +02:00 committed by GitHub
commit e654e66839
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1465,6 +1465,7 @@ void MainWindow::updateNewsLabel()
{
newsLabel->setText(tr("Loading news..."));
newsLabel->setEnabled(false);
ui->actionMoreNews->setVisible(false);
}
else
{
@ -1473,11 +1474,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);
}
}
}