OSDN Git Service

Modified so save menu item is disabled while on the splash screen.
authorEric Branlund <ebranlund@fastmail.com>
Wed, 29 Jan 2020 09:21:23 +0000 (01:21 -0800)
committerEric Branlund <ebranlund@fastmail.com>
Wed, 29 Jan 2020 16:26:05 +0000 (08:26 -0800)
src/main-cocoa.m

index aa67e01..f2d3b91 100644 (file)
@@ -4124,7 +4124,8 @@ static void hook_quit(const char * str)
        [menuItem setState: ((is_on) ? NSOnState : NSOffState)];
        return YES;
     }
-    else if( sel == @selector(sendAngbandCommand:) )
+    else if( sel == @selector(sendAngbandCommand:) ||
+            sel == @selector(saveGame:) )
     {
         /* we only want to be able to send commands during an active game */
         return !!game_in_progress;