summaryrefslogtreecommitdiff
path: root/libsowatch/watchserver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libsowatch/watchserver.cpp')
-rw-r--r--libsowatch/watchserver.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/libsowatch/watchserver.cpp b/libsowatch/watchserver.cpp
index 0b7b60f..f79b1c1 100644
--- a/libsowatch/watchserver.cpp
+++ b/libsowatch/watchserver.cpp
@@ -205,6 +205,10 @@ void WatchServer::nextNotification()
deactivateActiveWatchlet();
}
_watch->displayNotification(n);
+ if (_notificationWatchlet) {
+ activateWatchlet(_notificationWatchlet);
+ _notificationWatchlet->openNotification(n);
+ }
} else if (_currentWatchlet) {
activateCurrentWatchlet();
} else {
@@ -335,7 +339,10 @@ void WatchServer::removeNotification(Notification::Type type, Notification *n)
void WatchServer::goToIdle()
{
- Q_ASSERT(!_currentWatchlet && !_activeWatchlet);
+ Q_ASSERT(!_currentWatchlet);
+ if (_activeWatchlet) {
+ deactivateActiveWatchlet();
+ }
_watch->displayIdleScreen();
if (_idleWatchlet) {
activateWatchlet(_idleWatchlet);