Ensure "Clear Recent Files" menuitem titles are updated after language change.

(missing fixes in commit ac8e2d076)
This commit is contained in:
jean-pierre charras 2022-04-11 18:11:17 +02:00
parent a49bb792bd
commit f0f10a43a2
3 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,7 @@ void SCH_EDIT_FRAME::ReCreateMenuBar()
// Ensure the title is up to date after changing language
openRecentMenu->SetTitle( _( "Open Recent" ) );
fileHistory.UpdateClearText( openRecentMenu, _( "Clear Recent Files" ) );
fileMenu->Add( ACTIONS::doNew );
fileMenu->Add( ACTIONS::open );

View File

@ -62,6 +62,7 @@ void PL_EDITOR_FRAME::ReCreateMenuBar()
// Ensure the title is up to date after changing language
openRecentMenu->SetTitle( _( "Open Recent" ) );
recentFiles.UpdateClearText( openRecentMenu, _( "Clear Recent Files" ) );
//-- File menu -------------------------------------------------------
//

View File

@ -72,6 +72,7 @@ void PCB_EDIT_FRAME::ReCreateMenuBar()
// Ensure the title is up to date after changing language
openRecentMenu->SetTitle( _( "Open Recent" ) );
fileHistory.UpdateClearText( openRecentMenu, _( "Clear Recent Files" ) );
fileMenu->Add( ACTIONS::doNew );
fileMenu->Add( ACTIONS::open );