mirror of
https://github.com/munki/munki.git
synced 2026-04-30 09:19:31 -05:00
Added support for hiding and showing the main MunkiStatus window.
git-svn-id: http://munki.googlecode.com/svn/trunk@252 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
@@ -17,11 +17,11 @@
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>2.0.1</string>
|
||||
<string>2.0.2</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>MkSt</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>2.0.1</string>
|
||||
<string>2.0.2</string>
|
||||
<key>NSMainNibFile</key>
|
||||
<string>MainMenu</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
|
||||
@@ -131,8 +131,7 @@ class MSController(NSObject):
|
||||
NSThread.detachNewThreadSelector_toTarget_withObject_(self.handleSocket, self, None)
|
||||
NSApp.activateIgnoringOtherApps_(True)
|
||||
|
||||
def handleSocket(self):
|
||||
|
||||
def handleSocket(self):
|
||||
# Autorelease pool for memory management
|
||||
pool = NSAutoreleasePool.alloc().init()
|
||||
|
||||
@@ -191,6 +190,12 @@ class MSController(NSObject):
|
||||
if message.startswith("ACTIVATE: "):
|
||||
NSApp.activateIgnoringOtherApps_(True)
|
||||
return ""
|
||||
if message.startswith("HIDE: "):
|
||||
self.window.orderOut_(self)
|
||||
return ""
|
||||
if message.startswith("SHOW: "):
|
||||
self.window.orderFront_(self)
|
||||
return ""
|
||||
if message.startswith("TITLE: "):
|
||||
self.window.setTitle_(message[7:])
|
||||
return ""
|
||||
|
||||
Reference in New Issue
Block a user