Lagrange [work/v1.7]

macOS: Fixed a fatal error when running on High Sierra (10.13)

=> 73b162cb0911239b0b8bce1a190c44334eb6adb1

diff --git a/src/macos.m b/src/macos.m
index d42bdaf7..32fbef5b 100644
--- a/src/macos.m
+++ b/src/macos.m
@@ -860,10 +860,10 @@ static NSMenuItem *makeMenuItems_(NSMenu *menu, MenuCommands *commands, int atIn
                                    size_Array(items));
                     [item setSubmenu:sub];
                     if (isBookmarksMenu) {
-    #if defined (__MAC_10_13)
+#if defined (__MAC_11_0) /* TODO: Is there an equivalent symbol for older macOS? */
                         [item setImage:[NSImage imageWithSystemSymbolName:@"folder"
                                                  accessibilityDescription:nil]];
-    #endif
+#endif
                     }
                 }
                 else {
@@ -876,7 +876,7 @@ static NSMenuItem *makeMenuItems_(NSMenu *menu, MenuCommands *commands, int atIn
             else {
                 item.action = (hasCommand ? @selector(postMenuItemCommand:) : nil);
                 if (isBookmarksMenu && hasCommand && startsWith_CStr(items[i].command, "!open ")) {
-#if defined (__MAC_10_13)
+#if defined (__MAC_11_0) /* TODO: Is there an equivalent symbol for older macOS? */
                     [item setImage:[NSImage imageWithSystemSymbolName:@"bookmark.fill"
                                              accessibilityDescription:nil]];
 #endif
Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/work%2Fv1.7/cdiff/73b162cb0911239b0b8bce1a190c44334eb6adb1
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
29.207753 milliseconds
Gemini-to-HTML Time
0.226855 milliseconds

This content has been proxied by September (3851b).