Cleans-up the installer.

This commit is contained in:
zonble 2011-10-02 20:56:18 +08:00
parent 9091aebb3f
commit e857029c44
2 changed files with 6 additions and 9 deletions

View File

@ -91,10 +91,12 @@ class InstallerAppDelegate(NSObject):
try:
call([os.path.join(McBopomofoPath, "Contents/MacOS/McBopomofo"), "install"])
except:
NSRunAlertPanel(NSLocalizedString("Failed to install McBopomofo!", ""), "", NSLocalizedString("OK", ""), None, None)
NSRunAlertPanel(NSLocalizedString("Failed to install McBopomofo!", ""),
NSLocalizedString("Failed to activate McBopomofo", ""),
NSLocalizedString("OK", ""), None, None)
NSApp.terminate_(self)
NSRunAlertPanel(NSLocalizedString("Done!", ""),
NSLocalizedString("OpenVanilla McBopomofo has been installed on your Mac.", ""),
NSLocalizedString("McBopomofo has been installed on your Mac.", ""),
NSLocalizedString("OK", ""), None, None)
NSApp.terminate_(self)
@ -103,9 +105,7 @@ class InstallerAppDelegate(NSObject):
NSApp.terminate_(self)
def applicationDidFinishLaunching_(self, sender):
NSApp.activateIgnoringOtherApps_(True)
self.checkOSVerion()
self.showLicenseWindow()
pass

View File

@ -4,8 +4,5 @@ import AppKit
from PyObjCTools import AppHelper
# import modules containing classes required to start application and load MainMenu.nib
import InstallerAppDelegate
# pass control to AppKit
AppHelper.runEventLoop()