Cleans-up the installer.
This commit is contained in:
parent
9091aebb3f
commit
e857029c44
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue