Move preferences to an action instead of a wx event

This commit is contained in:
Ian McInerney
2023-08-08 00:51:22 +01:00
parent c41d78f2d3
commit a3a701a95e
17 changed files with 23 additions and 99 deletions
+1 -6
View File
@@ -245,12 +245,7 @@ void BITMAP2CMP_FRAME::doReCreateMenuBar()
//
ACTION_MENU* prefsMenu = new ACTION_MENU( false, tool );
// We can't use ACTIONS::showPreferences yet because wxWidgets moves this on
// Mac, and it needs the wxID_PREFERENCES id to find it.
prefsMenu->Add( _( "Preferences..." ) + "\tCtrl+,",
_( "Show preferences for all open tools" ),
wxID_PREFERENCES,
BITMAPS::preference );
prefsMenu->Add( ACTIONS::openPreferences );
prefsMenu->AppendSeparator();
AddMenuLanguageList( prefsMenu, tool );