Changeset 691237


Ignore:
Timestamp:
08/13/09 19:58:45 (4 years ago)
Author:
Micke Prag <micke.prag@…>
Branches:
('master', 'a231b56d57a69513303d0061f5fa3e3cd51c85c1')('controller-upgrade', '72b31cc86eeeef18f1371a3067b6e8a5ca21abfc')('windows_service_fixes', 'df6bd2788365991d36d5af2a75833b8de2a5860f')
Children:
4b3c87649788c41fddc8096166fe877dd32d4e5d
Parents:
ac1552179ddc844ed90160b82b4ffd0da33de96a
git-author:
Micke Prag <micke.prag@telldus.se>2009-08-13 17:58:45+00:00
git-committer:
Micke Prag <micke.prag@telldus.se>2009-08-13 17:58:45+00:00
Message:

Added the 'Quit' option to the systray menu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • telldus-gui/TelldusCenter/Plugins/script/com/telldus/systray/__init__.js

    rb53c96 r691237  
     1/** SYSTRAY **/ 
     2 
     3__setupPackage__( __extension__ ); 
    14 
    25__postInit__ = function() { 
    36        application.showMessage.connect( systrayMessage ); 
    47        com.telldus.systray.triggered.connect( triggered ); 
     8        application.allDoneLoading.connect( allDone ); 
     9 
     10} 
     11 
     12function allDone() { 
     13        var exit = com.telldus.systray.addMenuItem("&Quit"); 
     14        com.telldus.systray.menuItem(exit).triggered.connect(application.quit); 
    515} 
    616 
     
    1424        application.showMainWindow(); 
    1525} 
     26 
Note: See TracChangeset for help on using the changeset viewer.