fix: hide 'More news...' button if the news aren't loaded yet
Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
c375e7b4df
commit
93507a263b
@ -1465,6 +1465,7 @@ void MainWindow::updateNewsLabel()
|
|||||||
{
|
{
|
||||||
newsLabel->setText(tr("Loading news..."));
|
newsLabel->setText(tr("Loading news..."));
|
||||||
newsLabel->setEnabled(false);
|
newsLabel->setEnabled(false);
|
||||||
|
ui->actionMoreNews->setVisible(false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1473,11 +1474,13 @@ void MainWindow::updateNewsLabel()
|
|||||||
{
|
{
|
||||||
newsLabel->setText(entries[0]->title);
|
newsLabel->setText(entries[0]->title);
|
||||||
newsLabel->setEnabled(true);
|
newsLabel->setEnabled(true);
|
||||||
|
ui->actionMoreNews->setVisible(true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
newsLabel->setText(tr("No news available."));
|
newsLabel->setText(tr("No news available."));
|
||||||
newsLabel->setEnabled(false);
|
newsLabel->setEnabled(false);
|
||||||
|
ui->actionMoreNews->setVisible(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user