mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-07 15:37:14 +02:00
About dialog box shows "Custom Version"
This commit is contained in:
@@ -66,4 +66,21 @@
|
||||
[super sendEvent:event];
|
||||
}
|
||||
|
||||
|
||||
- (void)orderFrontStandardAboutPanel:(id)sender
|
||||
{
|
||||
NSString *version = [[NSBundle mainBundle] objectForInfoDictionaryKey:
|
||||
@"CFBundleVersion"];
|
||||
NSString *marketingVersion = [[NSBundle mainBundle]
|
||||
objectForInfoDictionaryKey:@"CFBundleShortVersionString"];
|
||||
NSString *title = [NSString stringWithFormat:
|
||||
@"Custom Version %@ (%@)", marketingVersion, version];
|
||||
|
||||
[self orderFrontStandardAboutPanelWithOptions:
|
||||
[NSDictionary dictionaryWithObjectsAndKeys:
|
||||
@"", @"Version",
|
||||
title, @"ApplicationVersion",
|
||||
nil]];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user