diff options
| author | LostDragonist <lost.dragonist@gmail.com> | 2020-01-01 21:38:18 -0700 |
|---|---|---|
| committer | LostDragonist <lost.dragonist@gmail.com> | 2020-01-01 21:38:18 -0700 |
| commit | 19a20159a5c8ad72f6978331b268ee75a1cad94b (patch) | |
| tree | 95d8bd73e3a23929fe05b1be8efe369c2d6abd70 /src/statusbar.cpp | |
| parent | 4d6cee82f42b5a4ff41c1360fbbbf90077c3b867 (diff) | |
Fix the API counter not being translated
Diffstat (limited to 'src/statusbar.cpp')
| -rw-r--r-- | src/statusbar.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/statusbar.cpp b/src/statusbar.cpp index c2c54862..4729c6ad 100644 --- a/src/statusbar.cpp +++ b/src/statusbar.cpp @@ -69,7 +69,9 @@ void StatusBar::setProgress(int percent) void StatusBar::setNotifications(bool hasNotifications) { - m_notifications->set(hasNotifications); + if (m_notifications) { + m_notifications->set(hasNotifications); + } } void StatusBar::setAPI(const APIStats& stats, const APIUserAccount& user) |
