summaryrefslogtreecommitdiff
path: root/sowatchd/watchhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sowatchd/watchhandler.cpp')
-rw-r--r--sowatchd/watchhandler.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/sowatchd/watchhandler.cpp b/sowatchd/watchhandler.cpp
index bde68b4..a2ea76a 100644
--- a/sowatchd/watchhandler.cpp
+++ b/sowatchd/watchhandler.cpp
@@ -57,6 +57,22 @@ WatchHandler::WatchHandler(ConfigKey *config, QObject *parent)
// Configure the server
_server->setNextWatchletButton(_config->value("next-watchlet-button").toString());
+ QString idle_watchlet_id = _config->value("idle-watchlet").toString();
+ if (!idle_watchlet_id.isEmpty()) {
+ Watchlet *watchlet = createWatchlet(idle_watchlet_id);
+ if (watchlet) {
+ _server->setIdleWatchlet(watchlet);
+ }
+ }
+
+ QString notif_watchlet_id = _config->value("notification-watchlet").toString();
+ if (!notif_watchlet_id.isEmpty()) {
+ Watchlet *watchlet = createWatchlet(notif_watchlet_id);
+ if (watchlet) {
+ _server->setNotificationWatchlet(watchlet);
+ }
+ }
+
updateProviders();
updateWatchlets();
}