summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-06-14 01:53:31 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-06-14 01:53:31 -0400
commitd527d62b2b671b52e74a34f24a701c18d7632477 (patch)
tree482da74669054c6aec9b7a1454fb0270b9bab085 /src
parenta75f54e5221b359d5a1e5c0d669c6ab2e3d297b2 (diff)
changed the notifications action back to being disabled when there aren't any, having a coloured and clickable icon was confusing
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 1d51b42e..250bc1d7 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -934,6 +934,8 @@ void MainWindow::updateProblemsButton()
final = original;
}
+ ui->actionNotifications->setEnabled(numProblems > 0);
+
// setting the icon on the action (shown on the menu)
ui->actionNotifications->setIcon(final);