Added missing things

This commit is contained in:
nedko 2025-12-04 15:25:48 +02:00
parent 6931d80e04
commit 77514c4d13

View File

@ -19,7 +19,7 @@ using std::string;
using std::vector;
using nlohmann::json;
void init_builders(map<string, Widget*(const json&)>& widget_builders)
void init_builders(map<string, Widget*(*)(const json&)>& widget_builders)
{
// widget_builders["name"] = &WidgetName::builder;
}
@ -73,6 +73,8 @@ int main(int argc, char **argv)
goto cleanup;
}
init_builders(widget_builders);
// Add Widgets From JSON
if (cfg.contains("widgets") && cfg["widgets"].is_array())
{