mirror of
https://github.com/munki/munki.git
synced 2026-04-26 06:48:57 -05:00
Fix for issue where a (newer) forced logout warning replaces a currently displayed forced logout warning in MSU.app
git-svn-id: http://munki.googlecode.com/svn/trunk@1275 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
@@ -670,8 +670,12 @@ class MSUAppDelegate(NSObject):
|
||||
@PyObjCTools.AppHelper.endSheetMethod
|
||||
def forceLogoutWarningDidEnd_returnCode_contextInfo_(self, alert, returncode, contextinfo):
|
||||
self._currentAlert = None
|
||||
btn_pressed = self._force_warning_btns[returncode]
|
||||
if btn_pressed == self._force_warning_logout_btn:
|
||||
btn_pressed = self._force_warning_btns.get(returncode)
|
||||
if not btn_pressed:
|
||||
# sheet was dismissed via NSApp.endSheet()
|
||||
# and not via button press, so do nothing
|
||||
pass
|
||||
elif btn_pressed == self._force_warning_logout_btn:
|
||||
munki.log("user", "install_with_logout")
|
||||
result = munki.logoutAndUpdate()
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user