From 946d7b1433a4eae7f2f253dbbeead2f6db4fa6a5 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Thu, 26 Dec 2019 04:30:26 -0500 Subject: [PATCH] Use createPanel() in helper.py. --- helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)));