Fix app names in Quit menu items on Mac.
This commit is contained in:
parent
14f00271a4
commit
b47453a93b
|
@ -963,7 +963,8 @@ void EDA_BASE_FRAME::CheckForAutoSaveFile( const wxFileName& aFileName )
|
|||
aFileName.GetFullName()
|
||||
);
|
||||
|
||||
int response = wxMessageBox( msg, Pgm().App().GetAppName(), wxYES_NO | wxICON_QUESTION, this );
|
||||
int response = wxMessageBox( msg, Pgm().App().GetAppDisplayName(), wxYES_NO | wxICON_QUESTION,
|
||||
this );
|
||||
|
||||
// Make a backup of the current file, delete the file, and rename the auto save file to
|
||||
// the file name.
|
||||
|
@ -972,7 +973,7 @@ void EDA_BASE_FRAME::CheckForAutoSaveFile( const wxFileName& aFileName )
|
|||
if( !wxRenameFile( autoSaveFileName.GetFullPath(), aFileName.GetFullPath() ) )
|
||||
{
|
||||
wxMessageBox( _( "The auto save file could not be renamed to the board file name." ),
|
||||
Pgm().App().GetAppName(), wxOK | wxICON_EXCLAMATION, this );
|
||||
Pgm().App().GetAppDisplayName(), wxOK | wxICON_EXCLAMATION, this );
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
@ -408,6 +408,7 @@ bool PGM_SINGLE_TOP::OnPgmInit()
|
|||
Kiway.SetTop( frame );
|
||||
|
||||
App().SetTopWindow( frame ); // wxApp gets a face.
|
||||
App().SetAppDisplayName( frame->GetAboutTitle() );
|
||||
|
||||
// Allocate a slice of time to show the frame and update wxWidgets widgets
|
||||
// (especially setting valid sizes) after creating frame and before calling
|
||||
|
|
|
@ -90,6 +90,8 @@ PGM_KICAD& PgmTop()
|
|||
|
||||
bool PGM_KICAD::OnPgmInit()
|
||||
{
|
||||
App().SetAppDisplayName( wxT( "KiCad" ) );
|
||||
|
||||
#if defined(DEBUG)
|
||||
wxString absoluteArgv0 = wxStandardPaths::Get().GetExecutablePath();
|
||||
|
||||
|
|
Loading…
Reference in New Issue