diff options
author | flow <flowlnlnln@gmail.com> | 2022-08-12 17:33:10 -0300 |
---|---|---|
committer | flow <flowlnlnln@gmail.com> | 2022-08-12 17:41:11 -0300 |
commit | 93507a263bc1f90355de7e5978dc762c832f61d3 (patch) | |
tree | 8dadef488640a3a4a6f5644df94ff939e9b6e1f4 /launcher/ui | |
parent | c375e7b4dfbdf7c201c42a70c96a1b2afdc34552 (diff) | |
download | PrismLauncher-93507a263bc1f90355de7e5978dc762c832f61d3.tar.gz PrismLauncher-93507a263bc1f90355de7e5978dc762c832f61d3.tar.bz2 PrismLauncher-93507a263bc1f90355de7e5978dc762c832f61d3.zip |
fix: hide 'More news...' button if the news aren't loaded yet
Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/ui')
-rw-r--r-- | launcher/ui/MainWindow.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/launcher/ui/MainWindow.cpp b/launcher/ui/MainWindow.cpp index c3d95599..299401f5 100644 --- a/launcher/ui/MainWindow.cpp +++ b/launcher/ui/MainWindow.cpp @@ -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); } } } |