Fix wxSystemAppearance::GetName()

'NSApp.effectiveAppearance' is available for macOS
10.14+ not 10.9.

Closes #18595.
This commit is contained in:
Artur Wieczorek
2019-11-22 18:32:20 +01:00
parent 84edda2ba0
commit e763ae96ac

View File

@@ -48,8 +48,8 @@ static int wxOSXGetUserDefault(NSString* key, int defaultValue)
wxString wxSystemAppearance::GetName() const wxString wxSystemAppearance::GetName() const
{ {
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9 #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_14
if ( WX_IS_MACOS_AVAILABLE(10, 9) ) if ( WX_IS_MACOS_AVAILABLE(10, 14) )
{ {
return wxStringWithNSString([[NSApp effectiveAppearance] name]); return wxStringWithNSString([[NSApp effectiveAppearance] name]);
} }