diff options
Diffstat (limited to 'Swift/Controllers/SystemTrayController.cpp')
| -rw-r--r-- | Swift/Controllers/SystemTrayController.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/Controllers/SystemTrayController.cpp b/Swift/Controllers/SystemTrayController.cpp index 8caf79a..0fdd4b5 100644 --- a/Swift/Controllers/SystemTrayController.cpp +++ b/Swift/Controllers/SystemTrayController.cpp @@ -1,21 +1,21 @@ #include "Swift/Controllers/SystemTrayController.h" #include <boost/bind.hpp> #include "Swift/Controllers/EventController.h" #include "Swift/Controllers/SystemTray.h" namespace Swift { SystemTrayController::SystemTrayController(EventController* eventController, SystemTray* systemTray) { eventController_ = eventController; systemTray_ = systemTray; eventController_->onEventQueueLengthChange.connect(boost::bind(&SystemTrayController::handleEventQueueLengthChange, this, _1)); } void SystemTrayController::handleEventQueueLengthChange(int length) { - systemTray_->setUnreadMessages(length > 0 ? true : false); + systemTray_->setUnreadMessages(length > 0); } } |
Swift