Formatting.

This commit is contained in:
Jeff Young 2021-02-20 14:36:15 +00:00
parent d4e68a985c
commit 67c7e7c759
2 changed files with 11 additions and 7 deletions

View File

@ -352,6 +352,7 @@ bool PCB_EDIT_FRAME::Files_io_from_id( int id )
UpdateTitle(); UpdateTitle();
return true; return true;
} }
return false; return false;
} }
@ -1004,13 +1005,14 @@ bool PCB_EDIT_FRAME::SavePcbFile( const wxString& aFileName, bool addToHistory,
// If save succeeded, replace the original with what we just wrote // If save succeeded, replace the original with what we just wrote
if( !wxRenameFile( tempFile.GetFullPath(), pcbFileName.GetFullPath() ) ) if( !wxRenameFile( tempFile.GetFullPath(), pcbFileName.GetFullPath() ) )
{ {
wxString msg = wxString::Format( _( wxString msg = wxString::Format( _( "Error saving board file \"%s\".\n"
"Error saving board file \"%s\".\nFailed to rename temporary file \"%s\"" ), "Failed to rename temporary file \"%s\"" ),
pcbFileName.GetFullPath(), tempFile.GetFullPath() pcbFileName.GetFullPath(),
); tempFile.GetFullPath() );
DisplayError( this, msg ); DisplayError( this, msg );
lowerTxt.Printf( _( "Failed to rename temporary file \"%s\"" ), tempFile.GetFullPath() ); lowerTxt.Printf( _( "Failed to rename temporary file \"%s\"" ),
tempFile.GetFullPath() );
SetMsgPanel( upperTxt, lowerTxt ); SetMsgPanel( upperTxt, lowerTxt );

View File

@ -46,9 +46,11 @@ bool PCB_EDIT_FRAME::Clear_Pcb( bool aQuery, bool aFinal )
if( aQuery && !GetBoard()->IsEmpty() ) if( aQuery && !GetBoard()->IsEmpty() )
{ {
if( !IsOK( this, if( !IsOK( this, _( "Current Board will be lost and this operation cannot be undone. "
_( "Current Board will be lost and this operation cannot be undone. Continue?" ) ) ) "Continue?" ) ) )
{
return false; return false;
}
} }
// Release the lock file, if exists // Release the lock file, if exists