Propagate widget settings change to widget
This commit is contained in:
committed by
Raphael Coeffic
parent
257f647d17
commit
06a65e1bd9
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user