Merge pull request #38 from sirnacnud/nssysteminfopanel-name-fix

Use localized CFBundleName for NSSystemInfoPanel
This commit is contained in:
CuriousTommy 2024-03-16 12:58:29 -07:00 committed by GitHub
commit 4dac644abc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,8 +53,7 @@ static NSSystemInfoPanel *_sharedInfoPanel = nil;
if (icon != nil)
[appIconView setImage: icon];
[appNameField setStringValue: [[[NSBundle mainBundle] infoDictionary]
objectForKey: @"CFBundleName"]];
[appNameField setStringValue: [[NSBundle mainBundle] objectForInfoDictionaryKey: @"CFBundleName"]];
NSString *bundleVersion = [[[NSBundle mainBundle] infoDictionary]
objectForKey: @"CFBundleVersion"];