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();
return true;
}
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( !wxRenameFile( tempFile.GetFullPath(), pcbFileName.GetFullPath() ) )
{
wxString msg = wxString::Format( _(
"Error saving board file \"%s\".\nFailed to rename temporary file \"%s\"" ),
pcbFileName.GetFullPath(), tempFile.GetFullPath()
);
wxString msg = wxString::Format( _( "Error saving board file \"%s\".\n"
"Failed to rename temporary file \"%s\"" ),
pcbFileName.GetFullPath(),
tempFile.GetFullPath() );
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 );

View File

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