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:
Ian McInerney 2021-12-03 01:01:26 +00:00
parent 65c0e0cd18
commit ab797d191f
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}