mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 14:02:57 +02:00
Move "Help Menu" after "Extra Menu".
This commit is contained in:
@@ -598,6 +598,20 @@ wxMenuBar * CommandManager::CurrentMenuBar() const
|
||||
return mMenuBarList.back().menubar;
|
||||
}
|
||||
|
||||
///
|
||||
/// Swap the last two menu bars in the list,
|
||||
/// to make the previous menu bar 'current' again.
|
||||
/// Typically used to switch back and forth
|
||||
/// between adding to a hidden menu bar and
|
||||
/// adding to one that is visible,
|
||||
///
|
||||
void CommandManager::SwapMenuBars()
|
||||
{
|
||||
int l = mMenuBarList.size();
|
||||
wxASSERT(l >= 2);
|
||||
std::swap(mMenuBarList[l - 2], mMenuBarList[l - 1]);
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
/// This starts a NEW menu
|
||||
|
@@ -234,6 +234,7 @@ class AUDACITY_DLL_API CommandManager final : public XMLTagHandler
|
||||
CommandFlag GetDefaultFlags() const { return mDefaultFlags; }
|
||||
CommandMask GetDefaultMask() const { return mDefaultMask; }
|
||||
|
||||
void SwapMenuBars();
|
||||
void SetOccultCommands( bool bOccult);
|
||||
CommandManager * SetLongName( const wxString & name ){
|
||||
mLongNameForItem = name;
|
||||
|
Reference in New Issue
Block a user