Skip to content

Commit

Permalink
Merge pull request #1393 from ychin/show-pre-release-about-macvim
Browse files Browse the repository at this point in the history
About MacVim show "pre-release" when running a pre-release build
  • Loading branch information
ychin committed Mar 19, 2023
2 parents 43b4967 + e8267a8 commit 01dd4ff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/MacVim/MMApplication.m
Expand Up @@ -52,8 +52,12 @@ - (void)orderFrontStandardAboutPanel:(id)sender
@"CFBundleVersion"];
NSString *marketingVersion = [[NSBundle mainBundle]
objectForInfoDictionaryKey:@"CFBundleShortVersionString"];

BOOL isPrerelease = [version containsSubstring:@"."];
NSString *prerelease = isPrerelease ? @"\npre-release" : @"";

NSString *title = [NSString stringWithFormat:
@"Vim %@ (MacVim r%@)", marketingVersion, version];
@"MacVim r%@ (Vim %@)%@", version, marketingVersion, prerelease];

[self orderFrontStandardAboutPanelWithOptions:
[NSDictionary dictionaryWithObjectsAndKeys:
Expand Down

0 comments on commit 01dd4ff

Please sign in to comment.