macOS: Fix menubar items being enabled when they shouldn't be.

Alex Szpakowski 2017-08-31 21:34:29 -03:00
parent b959be2569
commit d7ae313134
1 changed files with 2 additions and 2 deletions

View File

@ -80,14 +80,14 @@
if ([menuItem action] == @selector(toggleFullScreen:)) {
SDL_Window *window = [self findSDLWindow];
if (window == NULL) {
return YES;
return NO;
} else if ((window->flags & (SDL_WINDOW_FULLSCREEN|SDL_WINDOW_FULLSCREEN_DESKTOP)) != 0) {
return NO;
} else if ((window->flags & SDL_WINDOW_RESIZABLE) == 0) {
return NO;
}
}
return YES;
return [super validateMenuItem:menuItem];
}
- (BOOL)canBecomeKeyWindow