Force menubar update when file history is changed
Fixes https://gitlab.com/kicad/code/kicad/issues/4137
This commit is contained in:
parent
c663965498
commit
c0b03a043e
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue