mirror of
https://github.com/munki/munki.git
synced 2026-04-21 12:08:22 -05:00
Fix MSUStatusController to properly call statusWindowController methods.
This commit is contained in:
@@ -74,23 +74,23 @@ class MSUStatusController(NSObject):
|
||||
def updateStatus_(self, notification):
|
||||
info = notification.userInfo()
|
||||
if 'message' in info:
|
||||
statusWindowController.setMessage_(info['message'])
|
||||
self.statusWindowController.setMessage_(info['message'])
|
||||
if 'detail' in info:
|
||||
statusWindowController.setDetail_(info['detail'])
|
||||
self.statusWindowController.setDetail_(info['detail'])
|
||||
if 'percent' in info:
|
||||
statusWindowController.setPercentageDone_(info['percent'])
|
||||
self.statusWindowController.setPercentageDone_(info['percent'])
|
||||
command = info.get('command')
|
||||
if command == 'activate':
|
||||
statusWindowController.window.orderFrontRegardless()
|
||||
self.statusWindowController.window.orderFrontRegardless()
|
||||
elif command == 'hideStopButton':
|
||||
statusWindowController.hideStopButton()
|
||||
self.statusWindowController.hideStopButton()
|
||||
elif command == 'showStopButton':
|
||||
statusWindowController.showStopButton()
|
||||
self.statusWindowController.showStopButton()
|
||||
elif command == 'disableStopButton':
|
||||
statusWindowController.disableStopButton()
|
||||
self.statusWindowController.disableStopButton()
|
||||
elif command == 'enableStopButton':
|
||||
statusWindowController.enableStopButton()
|
||||
self.statusWindowController.enableStopButton()
|
||||
elif command == 'showRestartAlert':
|
||||
statusWindowController.doRestartAlert()
|
||||
self.statusWindowController.doRestartAlert()
|
||||
elif command == 'quit':
|
||||
self.cleanUpStatusSession()
|
||||
|
||||
Reference in New Issue
Block a user