OSDN Git Service

The setting for big tiles initially shown in the menu wasn't being initialized from...
authorEric Branlund <ebranlund@fastmail.com>
Mon, 6 Apr 2020 00:33:28 +0000 (17:33 -0700)
committerEric Branlund <ebranlund@fastmail.com>
Mon, 6 Apr 2020 00:35:48 +0000 (17:35 -0700)
src/main-cocoa.m

index d9adfb2..503b4ff 100644 (file)
@@ -5813,6 +5813,13 @@ static void play_sound(int event)
        [menuItem setState: ((is_on) ? NSOnState : NSOffState)];
        return YES;
     }
+    else if (sel == @selector(toggleWideTiles:)) {
+       BOOL is_on = [[NSUserDefaults standardUserDefaults]
+                        boolForKey:AngbandBigTileDefaultsKey];
+
+       [menuItem setState: ((is_on) ? NSOnState : NSOffState)];
+       return YES;
+    }
     else if( sel == @selector(sendAngbandCommand:) ||
             sel == @selector(saveGame:) )
     {