Skip to content

Commit

Permalink
Removed unused code, increased TrayIconThread to 1s
Browse files Browse the repository at this point in the history
  • Loading branch information
vicalejuri committed Mar 4, 2016
1 parent aa935af commit 6b2e60e
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions plugins/Trayicon/lib/tray_osx.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,39 +92,18 @@ def windowWillClose_(self, notification):
sys.stdout.flush()
NSApp.terminate_(self)

def setParams(self, ui_ip , ui_port, homepage ):
self.config = {
'ui_ip': ui_ip,
'ui_port': ui_port,
'homepage': homepage
}

def open_(self, notification):
print 'dispatch open'
sys.stdout.flush()

#Note: the function name for action can include '_'
# limited by Mac cocoa
def resetGoagent_(self, _):
print 'goagent stop'
print 'goagent start'

def enableProxy_(self, _):
print 'enable proxy'

def disableProxy_(self, _):
print 'disable proxy'


def tray_init():
global tray_app, delegate
tray_app = NSApplication.sharedApplication()
delegate = MacTrayObject.alloc().init()

#delegate.setParams( *sys.argv[1:] )

def tray_run():
global tray_app, delegate
tray_app.setDelegate_(delegate)
AppHelper.runEventLoop()

Expand Down

0 comments on commit 6b2e60e

Please sign in to comment.