Show the pcb/sch windows because macOS can't handle keeping them invisible

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19462
This commit is contained in:
Marek Roszko 2025-01-04 18:17:53 -05:00
parent 32b7fe7ae9
commit adf7c7a456
2 changed files with 14 additions and 4 deletions

View File

@ -929,6 +929,9 @@ void PANEL_JOBS::EnsurePcbSchFramesOpen()
wxEventBlocker blocker( this );
frame->OpenProjectFiles( std::vector<wxString>( 1, boardfn.GetFullPath() ) );
if( !frame->IsVisible() )
frame->Show( true );
}
frame = m_frame->Kiway().Player( FRAME_SCH, false );
@ -948,7 +951,12 @@ void PANEL_JOBS::EnsurePcbSchFramesOpen()
wxEventBlocker blocker( this );
frame->OpenProjectFiles( std::vector<wxString>( 1, schFn.GetFullPath() ) );
if( !frame->IsVisible() )
frame->Show( true );
}
SetFocus();
}

View File

@ -108,15 +108,17 @@ int JOBS_RUNNER::runSpecialCopyFiles( const JOBSET_JOB* aJob, PROJECT* aProject
{
JOB_SPECIAL_COPYFILES* job = static_cast<JOB_SPECIAL_COPYFILES*>( aJob->m_job.get() );
if( job->m_source.IsEmpty() )
wxString source = ExpandTextVars( job->m_source, aProject );
if( source.IsEmpty() )
return CLI::EXIT_CODES::ERR_ARGS;
wxFileName source( job->m_source );
source.MakeAbsolute( aProject->GetProjectPath() );
wxFileName sourceFn( source );
sourceFn.MakeAbsolute( aProject->GetProjectPath() );
wxString errors;
int copyCount = 0;
bool success = CopyFilesOrDirectory( source.GetFullPath(), job->GetFullOutputPath(),
bool success = CopyFilesOrDirectory( sourceFn.GetFullPath(), job->GetFullOutputPath(),
errors, copyCount );
if( !success )