Fix macOS preferences menu, lost in 0da18dbf9b62b532f48a4e859f70f4ddedb6f78e
authorCarl Hetherington <cth@carlh.net>
Thu, 30 Jan 2025 23:20:47 +0000 (00:20 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 30 Jan 2025 23:20:47 +0000 (00:20 +0100)
src/tools/dcpomatic_kdm.cc

index af69aca3cf14397d6ca346c0fd5ff3006f39bfea..e65a637447fd6f187194d30d6b4f79820043aeb1 100644 (file)
@@ -311,15 +311,17 @@ private:
                file->Append (wxID_EXIT, _("&Quit"));
 #endif
 
-#ifdef DCPOMATIC_OSX
-               file->Append(wxID_PREFERENCES, _("&Preferences...\tCtrl-,"));
-#else
+#ifndef DCPOMATIC_OSX
                wxMenu* edit = new wxMenu;
                edit->Append (wxID_PREFERENCES, _("&Preferences...\tCtrl-P"));
 #endif
 
                wxMenu* help = new wxMenu;
 #ifdef DCPOMATIC_OSX
+               /* This will get moved to the program menu, so we just need to add it to some menu that
+                * does get used on macOS.
+                */
+               help->Append(wxID_PREFERENCES, _("&Preferences...\tCtrl-,"));
                help->Append(wxID_ABOUT, variant::wx::insert_dcpomatic_kdm_creator(_("About %s")));
 #else
                help->Append (wxID_ABOUT, _("About"));