Propagate widget settings change to widget

This commit is contained in:
Raphael Coeffic
2021-05-06 12:55:59 +02:00
committed by Raphael Coeffic
parent 257f647d17
commit 06a65e1bd9
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -182,7 +182,7 @@ class SetupWidgetsPage: public FormWindow
#if defined(DEBUG_WINDOWS)
std::string getName() const override
{
return "SetupWidgetPage(idx=" + std::to_string(customScreenIdx) + ")";
return "SetupWidgetsPage(idx=" + std::to_string(customScreenIdx) + ")";
}
#endif
@@ -342,7 +342,7 @@ ScreenSetupPage::ScreenSetupPage(ScreenMenu * menu, unsigned pageIndex, unsigned
static void updateLayoutOptions(FormGroup* optionsWindow, unsigned customScreenIndex) // TODO
static void updateLayoutOptions(FormGroup* optionsWindow, unsigned customScreenIndex)
{
FormGridLayout grid;
optionsWindow->clear();
@@ -144,6 +144,10 @@ WidgetSettings::WidgetSettings(Window * parent, Widget * widget) :
optPtr++;
grid.nextLine();
}
setCloseHandler([widget]() {
widget->update();
});
}