mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
Corrected method name.
This commit is contained in:
1 parent
d25e96f220
commit
1c09a01ef9
3 files changed
+9
-4
No files matched your search
+1
-1
@@ -73,7 +73,7 @@
|
||||
|
||||
- (BOOL)updateInProgress;
|
||||
|
||||
- (BOOL)isUpdateInProgress;
|
||||
- (BOOL)installationInProgress;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ static NSMutableDictionary *sharedUpdaters = nil;
|
||||
static NSString * const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaultsObservationContext";
|
||||
|
||||
|
||||
- (BOOL)isUpdateInProgress
|
||||
- (BOOL)installationInProgress
|
||||
{
|
||||
BOOL result = NO;
|
||||
@try
|
||||
|
||||
@@ -54,6 +54,13 @@ selfPath: (NSString*)inSelfPath alreadyInstalled:(BOOL)inalreadyInstalled
|
||||
shouldRelaunch = relaunch;
|
||||
alreadyInstalled = inalreadyInstalled;
|
||||
|
||||
if (NULL != hostpath)
|
||||
{
|
||||
NSString *bundlePath = [[NSFileManager defaultManager] stringWithFileSystemRepresentation:hostpath length:strlen(hostpath)];
|
||||
NSBundle *theBundle = [NSBundle bundleWithPath:bundlePath];
|
||||
host = [[SUHost alloc] initWithBundle: theBundle];
|
||||
}
|
||||
|
||||
BOOL alreadyTerminated = (getppid() == 1); // ppid is launchd (1) => parent terminated already
|
||||
|
||||
if( alreadyTerminated )
|
||||
@@ -143,8 +150,6 @@ selfPath: (NSString*)inSelfPath alreadyInstalled:(BOOL)inalreadyInstalled
|
||||
|
||||
- (void) install
|
||||
{
|
||||
NSBundle *theBundle = [NSBundle bundleWithPath: [[NSFileManager defaultManager] stringWithFileSystemRepresentation: hostpath length:strlen(hostpath)]];
|
||||
host = [[SUHost alloc] initWithBundle: theBundle];
|
||||
installationPath = [[host installationPath] copy];
|
||||
|
||||
// Perhaps a poor assumption but: if we're not relaunching, we assume we shouldn't be showing any UI either. Because non-relaunching installations are kicked off without any user interaction, we shouldn't be interrupting them.
|
||||
|
||||
Reference in new issue
Block a user