Browse Source

macosx: Fix usage of @available

@available directive needs to be the only element inside an if clause,
otherwise the compiler warns.
pull/141/head
David Fuhrmann 4 years ago
committed by Felix Paul Kühne
parent
commit
7acec9d54a
  1. 6
      modules/gui/macosx/views/VLCBottomBarView.m

6
modules/gui/macosx/views/VLCBottomBarView.m

@ -151,8 +151,10 @@
BOOL setDark = NO;
if (@available(macOS 10.14, *) && [self.effectiveAppearance.name isEqualToString:NSAppearanceNameVibrantDark]) {
setDark = YES;
if (@available(macOS 10.14, *)) {
if ([self.effectiveAppearance.name isEqualToString:NSAppearanceNameVibrantDark]) {
setDark = YES;
}
}
_isDark = setDark;

Loading…
Cancel
Save