When changing widget go directly widget settings

This commit is contained in:
eshifri
2021-10-04 21:51:47 +11:00
committed by Peter Feerick
parent 0cbb14bc11
commit 6c74af974c
+2
View File
@@ -121,6 +121,8 @@ SetupWidgetsPageSlot::SetupWidgetsPageSlot(FormGroup * parent, const rect_t & re
for (auto factory: getRegisteredWidgets()) {
menu->addLine(factory->getName(), [=]() {
container->createWidget(slotIndex, factory);
auto widget = container->getWidget(slotIndex);
new WidgetSettings(parent, widget);
});
}
});