If log window is already open when Command-L is invoked, just bring the log window to the front; don't re-initialize the window

This commit is contained in:
Greg Neagle
2016-04-21 11:26:40 -07:00
parent d9ef976d4c
commit b2691f6c0b
@@ -157,6 +157,11 @@ class MSULogWindowController(NSObject):
@IBAction
def showLogWindow_(self, notification):
'''Show the log window.'''
if self.window.isVisible():
# It's already open, just move it to front
self.window.makeKeyAndOrderFront_(self)
return
consoleuser = munki.getconsoleuser()
if consoleuser == None or consoleuser == u"loginwindow":