Initialize settings for SINGLE_TOP
(cherry picked from commit 82ba67db82
)
This commit is contained in:
parent
4258738b89
commit
7ddef03aba
|
@ -46,6 +46,7 @@
|
||||||
#include <kiway_player.h>
|
#include <kiway_player.h>
|
||||||
#include <macros.h>
|
#include <macros.h>
|
||||||
#include <confirm.h>
|
#include <confirm.h>
|
||||||
|
#include <settings/kicad_settings.h>
|
||||||
#include <settings/settings_manager.h>
|
#include <settings/settings_manager.h>
|
||||||
|
|
||||||
#include <kiplatform/app.h>
|
#include <kiplatform/app.h>
|
||||||
|
@ -340,6 +341,8 @@ bool PGM_SINGLE_TOP::OnPgmInit()
|
||||||
// Tell the settings manager about the current Kiway
|
// Tell the settings manager about the current Kiway
|
||||||
GetSettingsManager().SetKiway( &Kiway );
|
GetSettingsManager().SetKiway( &Kiway );
|
||||||
|
|
||||||
|
GetSettingsManager().RegisterSettings( new KICAD_SETTINGS );
|
||||||
|
|
||||||
// Use KIWAY to create a top window, which registers its existence also.
|
// 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,
|
// "TOP_FRAME" is a macro that is passed on compiler command line from CMake,
|
||||||
// and is one of the types in FRAME_T.
|
// and is one of the types in FRAME_T.
|
||||||
|
|
Loading…
Reference in New Issue