diff options
Diffstat (limited to 'source/frontend/StarScriptPane.cpp')
-rw-r--r-- | source/frontend/StarScriptPane.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/frontend/StarScriptPane.cpp b/source/frontend/StarScriptPane.cpp index 87c1353..e2e8a33 100644 --- a/source/frontend/StarScriptPane.cpp +++ b/source/frontend/StarScriptPane.cpp @@ -179,7 +179,7 @@ LuaCallbacks ScriptPane::makePaneCallbacks() { }); callbacks.registerCallback("addWidget", [this](Json const& newWidgetConfig, Maybe<String> const& newWidgetName) { - String name = newWidgetName.value(strf("%d", Random::randu64())); + String name = newWidgetName.value(strf("{}", Random::randu64())); WidgetPtr newWidget = m_reader.makeSingle(name, newWidgetConfig); this->addChild(name, newWidget); }); |