Skip to content

Commit 4295e0e

Browse files
slarosa3nids
authored andcommitted
Fix build on OSX platform < 10.14 (#8348)
1 parent 5f5edb6 commit 4295e0e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/native/mac/qgsmacnative.mm

+5-1
Original file line numberDiff line numberDiff line change
@@ -121,5 +121,9 @@ - ( BOOL )userNotificationCenter:( NSUserNotificationCenter * )center shouldPres
121121

122122
bool QgsMacNative::hasDarkTheme()
123123
{
124-
return ( NSApp.effectiveAppearance.name != NSAppearanceNameAqua );
124+
#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400
125+
return ( NSApp.effectiveAppearance.name != NSAppearanceNameAqua );
126+
#else
127+
return false;
128+
#endif
125129
}

0 commit comments

Comments
 (0)