From ea4b47f86d593962a3662ad92040175ac18cd13a Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 27 Jan 2023 15:12:16 -0700 Subject: [PATCH] avoid local prefs var map building --- gtk2_ardour/ui_config.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/ui_config.cc b/gtk2_ardour/ui_config.cc index 79d4479b88..cb99892c4c 100644 --- a/gtk2_ardour/ui_config.cc +++ b/gtk2_ardour/ui_config.cc @@ -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();