mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 10:13:19 +02:00
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:
parent
32b7fe7ae9
commit
adf7c7a456
@ -929,6 +929,9 @@ void PANEL_JOBS::EnsurePcbSchFramesOpen()
|
|||||||
wxEventBlocker blocker( this );
|
wxEventBlocker blocker( this );
|
||||||
|
|
||||||
frame->OpenProjectFiles( std::vector<wxString>( 1, boardfn.GetFullPath() ) );
|
frame->OpenProjectFiles( std::vector<wxString>( 1, boardfn.GetFullPath() ) );
|
||||||
|
|
||||||
|
if( !frame->IsVisible() )
|
||||||
|
frame->Show( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
frame = m_frame->Kiway().Player( FRAME_SCH, false );
|
frame = m_frame->Kiway().Player( FRAME_SCH, false );
|
||||||
@ -948,7 +951,12 @@ void PANEL_JOBS::EnsurePcbSchFramesOpen()
|
|||||||
wxEventBlocker blocker( this );
|
wxEventBlocker blocker( this );
|
||||||
|
|
||||||
frame->OpenProjectFiles( std::vector<wxString>( 1, schFn.GetFullPath() ) );
|
frame->OpenProjectFiles( std::vector<wxString>( 1, schFn.GetFullPath() ) );
|
||||||
|
|
||||||
|
if( !frame->IsVisible() )
|
||||||
|
frame->Show( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SetFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -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() );
|
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;
|
return CLI::EXIT_CODES::ERR_ARGS;
|
||||||
|
|
||||||
wxFileName source( job->m_source );
|
wxFileName sourceFn( source );
|
||||||
source.MakeAbsolute( aProject->GetProjectPath() );
|
sourceFn.MakeAbsolute( aProject->GetProjectPath() );
|
||||||
|
|
||||||
wxString errors;
|
wxString errors;
|
||||||
int copyCount = 0;
|
int copyCount = 0;
|
||||||
bool success = CopyFilesOrDirectory( source.GetFullPath(), job->GetFullOutputPath(),
|
bool success = CopyFilesOrDirectory( sourceFn.GetFullPath(), job->GetFullOutputPath(),
|
||||||
errors, copyCount );
|
errors, copyCount );
|
||||||
|
|
||||||
if( !success )
|
if( !success )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user