summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/macos.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/macos.m b/src/macos.m
index d737e9e8..d4b160fe 100644
--- a/src/macos.m
+++ b/src/macos.m
@@ -570,7 +570,11 @@ static NSMenuItem *makeMenuItems_(NSMenu *menu, MenuCommands *commands, const iM
570 deinit_String(&itemTitle); 570 deinit_String(&itemTitle);
571 [item setTarget:commands]; 571 [item setTarget:commands];
572 if (isChecked) { 572 if (isChecked) {
573#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_13
573 [item setState:NSControlStateValueOn]; 574 [item setState:NSControlStateValueOn];
575#else
576 [item setState:NSOnState];
577#endif
574 selectedItem = item; 578 selectedItem = item;
575 } 579 }
576 [item setEnabled:!isDisabled]; 580 [item setEnabled:!isDisabled];