Disregard the project manager window size on migration
An old size for the window could cut off the PCM button if it were migrated, so to ensure the button is visible, just always use a fresh window size on migration. Fixes https://gitlab.com/kicad/code/kicad/issues/9649
This commit is contained in:
parent
65c0e0cd18
commit
ab797d191f
|
@ -86,5 +86,10 @@ bool KICAD_SETTINGS::MigrateFromLegacy( wxConfigBase* aCfg )
|
|||
|
||||
ret &= fromLegacy<int>( aCfg, "LeftWinWidth", "appearance.left_frame_width" );
|
||||
|
||||
// Override the size parameters to ensure the new PCM button is always shown.
|
||||
// This will make the window take the default size instead of the migrated one.
|
||||
Set( "window.size_x", 0 );
|
||||
Set( "window.size_y", 0 );
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue