DIALOG_PLOT: use a short living quasimodal dialog instead of a long living window.

In this case, a quasimodal dialog is the right way.
From master branch, commit 43f5a7c74
This commit is contained in:
jean-pierre charras 2022-01-29 13:14:22 +01:00
parent b3965c014c
commit 35968dfe18
1 changed files with 2 additions and 9 deletions

View File

@ -1436,15 +1436,8 @@ void PCB_EDIT_FRAME::ToPlotter( int aID )
SetPlotSettings( plotSettings );
// Force rebuild the dialog if currently open because the old dialog can be not up to date
// if the board (or units) has changed
wxWindow* dlg = wxWindow::FindWindowByName( DLG_WINDOW_NAME );
if( dlg )
dlg->Destroy();
dlg = new DIALOG_PLOT( this );
dlg->Show( true );
DIALOG_PLOT dlg( this );
dlg.ShowQuasiModal( );
}