Naming clarity. No functional changes.

This commit is contained in:
Jeff Young
2023-06-05 11:01:10 +01:00
parent f3d3ade1dc
commit 29aabcf77e
4 changed files with 15 additions and 13 deletions
+4 -4
View File
@@ -39,12 +39,12 @@
#include <widgets/appearance_controls.h>
bool PCB_EDIT_FRAME::Clear_Pcb( bool aQuery, bool aFinal )
bool PCB_EDIT_FRAME::Clear_Pcb( bool doAskAboutUnsavedChanges, bool aFinal )
{
if( GetBoard() == nullptr )
return false;
if( aQuery && !GetBoard()->IsEmpty() )
if( doAskAboutUnsavedChanges && !GetBoard()->IsEmpty() )
{
if( !IsOK( this, _( "Current Board will be lost and this operation cannot be undone. "
"Continue?" ) ) )
@@ -93,14 +93,14 @@ bool PCB_EDIT_FRAME::Clear_Pcb( bool aQuery, bool aFinal )
}
bool FOOTPRINT_EDIT_FRAME::Clear_Pcb( bool aQuery )
bool FOOTPRINT_EDIT_FRAME::Clear_Pcb( bool doAskAboutUnsavedChanges )
{
if( GetBoard() == nullptr )
return false;
bool is_last_fp_from_brd = IsCurrentFPFromBoard();
if( aQuery && IsContentModified() )
if( doAskAboutUnsavedChanges && IsContentModified() )
{
wxSafeYield( this, true ); // Allow frame to come to front before showing warning.