We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8239d13 commit 4ad2e84Copy full SHA for 4ad2e84
Source/SPAboutController.m
@@ -58,7 +58,8 @@ - (void)awakeFromNib
58
NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];
59
60
// If the version string has a prefix of 'Nightly' then this is obviously a nighly build.
61
- BOOL isSnapshotBuild = [version containsString:SPSnapshotBuildIndicator];
+ NSRange matchRange = [version rangeOfString:SPSnapshotBuildIndicator];
62
+ BOOL isSnapshotBuild = (matchRange.location != NSNotFound);
63
64
// Set the application name, but only include the major version if this is not a nightly build.
65
[appNameVersionTextField setStringValue:isSnapshotBuild ? @"Sequel Pro" : [NSString stringWithFormat:@"Sequel Pro %@", version]];
0 commit comments