Skip to content

Commit

Permalink
[Ref] Small cleanup.
Browse files Browse the repository at this point in the history
git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@22348 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
sagamusix committed Nov 29, 2024
1 parent 63a3e60 commit fde005f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions mptrack/MainFrm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ CMainFrame::CMainFrame()
m_szInfoText[0] = 0;
m_szXInfoText[0]= 0;

InitCommonControls();
MemsetZero(gcolrefVuMeter);
}

Expand Down Expand Up @@ -260,6 +261,8 @@ void CMainFrame::Initialize()
AddToolBarMenuEntries(*toolbarMenu);
}

m_InputHandler->UpdateMainMenu();

#ifdef MPT_ENABLE_PLAYBACK_TEST_MENU
CMenu debugMenu;
debugMenu.CreatePopupMenu();
Expand Down
2 changes: 0 additions & 2 deletions mptrack/Mptrack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1384,8 +1384,6 @@ BOOL CTrackApp::InitInstanceImpl(CMPTCommandLineInfo &cmdInfo)

// Initialize CMainFrame
pMainFrame->Initialize();
InitCommonControls();
pMainFrame->GetInputHandler()->UpdateMainMenu();

// Dispatch commands specified on the command line
if(cmdInfo.m_nShellCommand == CCommandLineInfo::FileNew)
Expand Down

0 comments on commit fde005f

Please sign in to comment.