mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Fix crashes in auto updater.
This commit is contained in:
@@ -56,10 +56,6 @@ void CallNSInvocation(ScopedNSInvocation invocation) {
|
||||
base::Bind(&CallNSInvocation, base::Passed(invocation_ptr.Pass())));
|
||||
}
|
||||
|
||||
- (void)updaterWillRelaunchApplication:(SUUpdater*)updater {
|
||||
[[SUUpdater sharedUpdater] setDelegate:nil];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
namespace auto_updater {
|
||||
@@ -67,7 +63,6 @@ namespace auto_updater {
|
||||
// static
|
||||
void AutoUpdater::Init() {
|
||||
SUUpdaterDelegate* delegate = [[SUUpdaterDelegate alloc] init];
|
||||
[delegate autorelease];
|
||||
[[SUUpdater sharedUpdater] setDelegate:delegate];
|
||||
}
|
||||
|
||||
@@ -89,7 +84,7 @@ void AutoUpdater::SetAutomaticallyDownloadsUpdates(bool yes) {
|
||||
|
||||
// static
|
||||
void AutoUpdater::CheckForUpdates() {
|
||||
[[SUUpdater sharedUpdater] checkForUpdates:[SUUpdater sharedUpdater]];
|
||||
[[SUUpdater sharedUpdater] checkForUpdates:nil];
|
||||
}
|
||||
|
||||
// static
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
<string>${PRODUCT_NAME}</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>atom.icns</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
<key>NSMainNibFile</key>
|
||||
<string>MainMenu</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
|
||||
Reference in New Issue
Block a user