From b53c96e06ff0532937cbb3a0217c47979fb8ecd4 Mon Sep 17 00:00:00 2001 From: Micke Prag Date: Mon, 11 May 2009 12:29:09 +0000 Subject: [PATCH] Open the mainwindow when the systray-icon is clicked. --- .../Plugins/script/com/telldus/systray/__init__.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/telldus-gui/TelldusCenter/Plugins/script/com/telldus/systray/__init__.js b/telldus-gui/TelldusCenter/Plugins/script/com/telldus/systray/__init__.js index f133a6ab..775bd71c 100644 --- a/telldus-gui/TelldusCenter/Plugins/script/com/telldus/systray/__init__.js +++ b/telldus-gui/TelldusCenter/Plugins/script/com/telldus/systray/__init__.js @@ -1,6 +1,7 @@ __postInit__ = function() { application.showMessage.connect( systrayMessage ); + com.telldus.systray.triggered.connect( triggered ); } function systrayMessage(title, message, detailedMessage) { @@ -8,3 +9,7 @@ function systrayMessage(title, message, detailedMessage) { com.telldus.systray.showMessage(title, message, detailedMessage); } } + +function triggered() { + application.showMainWindow(); +} \ No newline at end of file