diff --git a/helper.py b/helper.py index cdde373f..ecc4bbf1 100755 --- a/helper.py +++ b/helper.py @@ -420,7 +420,7 @@ struct {identifier} : Module {{""" struct {identifier}Widget : ModuleWidget {{ {identifier}Widget({identifier}* module) {{ setModule(module); - setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/{slug}.svg"))); + setPanel(createPanel(asset::plugin(pluginInstance, "res/{slug}.svg"))); addChild(createWidget(Vec(RACK_GRID_WIDTH, 0))); addChild(createWidget(Vec(box.size.x - 2 * RACK_GRID_WIDTH, 0)));