Tidy and fix up the playlist editor menu on macOS.
authorCarl Hetherington <cth@carlh.net>
Sun, 17 Mar 2024 11:22:31 +0000 (12:22 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 17 Mar 2024 11:45:27 +0000 (12:45 +0100)
src/tools/dcpomatic_playlist.cc

index a373d81e69e518f329bbd69479f78c4b86534544..d092ca5136f68d8e185f7a51ede4f7b9fd30ca55 100644 (file)
@@ -567,34 +567,32 @@ private:
 
        void setup_menu (wxMenuBar* m)
        {
-               auto file = new wxMenu;
-#ifdef __WXOSX__
-               file->Append(wxID_PREFERENCES, _("&Preferences...\tCtrl-,"));
-               file->Append (wxID_EXIT, _("&Exit"));
+#ifdef DCPOMATIC_OSX
+               auto help = new wxMenu;
+               /* These just need to be appended somewhere, it seems - they magically
+                * get moved to the right place.
+                */
+               help->Append(wxID_PREFERENCES, _("&Preferences...\tCtrl-,"));
+               help->Append(wxID_EXIT, _("&Exit"));
+               help->Append(wxID_ABOUT, _("About DCP-o-matic"));
+
+               m->Append(help, _("&Help"));
 #else
-               file->Append (wxID_EXIT, _("&Quit"));
-#endif
+               auto file = new wxMenu;
+               file->Append(wxID_EXIT, _("&Quit"));
 
-#ifndef __WXOSX__
                auto edit = new wxMenu;
-               edit->Append (wxID_PREFERENCES, _("&Preferences...\tCtrl-P"));
-#endif
+               edit->Append(wxID_PREFERENCES, _("&Preferences...\tCtrl-P"));
 
                auto help = new wxMenu;
-#ifdef __WXOSX__
-               help->Append (wxID_ABOUT, _("About DCP-o-matic"));
-#else
-               help->Append (wxID_ABOUT, _("About"));
-#endif
+               help->Append(wxID_ABOUT, _("About"));
 
-               m->Append (file, _("&File"));
-#ifndef __WXOSX__
-               m->Append (edit, _("&Edit"));
+               m->Append(file, _("&File"));
+               m->Append(edit, _("&Edit"));
+               m->Append(help, _("&Help"));
 #endif
-               m->Append (help, _("&Help"));
        }
 
-
        void config_changed ()
        {
                try {