Open the mainwindow when the systray-icon is clicked.
This commit is contained in:
parent
d763b5c215
commit
b53c96e06f
1 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue