mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Fix software update logic
It would previously not ask to update (but go directly to download) when doing a manual update check.
This commit is contained in:
@@ -173,7 +173,7 @@ static SoftwareUpdate* SharedInstance;
|
||||
}
|
||||
else if(info.version > thisVersion)
|
||||
{
|
||||
if(!backgroundFlag && [[NSUserDefaults standardUserDefaults] boolForKey:kUserDefaultsAskBeforeUpdatingKey])
|
||||
if(!backgroundFlag || [[NSUserDefaults standardUserDefaults] boolForKey:kUserDefaultsAskBeforeUpdatingKey])
|
||||
{
|
||||
NSInteger choice = NSRunInformationalAlertPanel(@"New Version Available", @"%@ %ld is now available—you have %ld. Would you like to download it now?", @"Download & Install", nil, @"Later", appName, info.version, thisVersion);
|
||||
if(choice == NSAlertDefaultReturn) // “Download & Install”
|
||||
|
||||
Reference in New Issue
Block a user