13
0

avoid local prefs var map building

This commit is contained in:
Paul Davis 2023-01-27 15:12:16 -07:00
parent a4fc52ab55
commit ea4b47f86d

View File

@ -95,8 +95,8 @@ UIConfiguration::UIConfiguration ()
block_save (0)
{
/* build map */
/* Uncomment the following to get a list of all config variables */
#if 0
#undef UI_CONFIG_VARIABLE
#define UI_CONFIG_VARIABLE(Type,var,name,value) _my_variables.insert (std::make_pair ((name), &(var)));
#define CANVAS_FONT_VARIABLE(var,name) /* no need for metadata for these */
@ -104,6 +104,13 @@ UIConfiguration::UIConfiguration ()
#undef UI_CONFIG_VARIABLE
#undef CANVAS_FONT_VARIABLE
for (auto const & s : _my_variables) {
std::cerr << s.first << std::endl;
}
#endif
/* This is global across all Configuration objects */
build_metadata ();
load_state();