Initialize settings for SINGLE_TOP

This commit is contained in:
Seth Hillbrand 2023-04-18 19:27:32 -07:00
parent 32d17547e5
commit 82ba67db82
1 changed files with 3 additions and 0 deletions

View File

@ -46,6 +46,7 @@
#include <kiway_player.h>
#include <macros.h>
#include <confirm.h>
#include <settings/kicad_settings.h>
#include <settings/settings_manager.h>
#include <kiplatform/app.h>
@ -340,6 +341,8 @@ bool PGM_SINGLE_TOP::OnPgmInit()
// Tell the settings manager about the current Kiway
GetSettingsManager().SetKiway( &Kiway );
GetSettingsManager().RegisterSettings( new KICAD_SETTINGS );
// Use KIWAY to create a top window, which registers its existence also.
// "TOP_FRAME" is a macro that is passed on compiler command line from CMake,
// and is one of the types in FRAME_T.