Force menubar update when file history is changed

Fixes https://gitlab.com/kicad/code/kicad/issues/4137
This commit is contained in:
Ian McInerney 2020-04-05 18:05:24 +01:00
parent c663965498
commit c0b03a043e
1 changed files with 7 additions and 0 deletions

View File

@ -483,6 +483,13 @@ void EDA_BASE_FRAME::UpdateFileHistory( const wxString& FullFileName, FILE_HISTO
fileHistory = &Kiface().GetFileHistory();
fileHistory->AddFileToHistory( FullFileName );
// Update the menubar to update the file history menu
if( GetMenuBar() )
{
ReCreateMenuBar();
GetMenuBar()->Refresh();
}
}