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)
|
#if defined(DEBUG_WINDOWS)
|
||||||
std::string getName() const override
|
std::string getName() const override
|
||||||
{
|
{
|
||||||
return "SetupWidgetPage(idx=" + std::to_string(customScreenIdx) + ")";
|
return "SetupWidgetsPage(idx=" + std::to_string(customScreenIdx) + ")";
|
||||||
}
|
}
|
||||||
#endif
|
#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;
|
FormGridLayout grid;
|
||||||
optionsWindow->clear();
|
optionsWindow->clear();
|
||||||
|
|||||||
@@ -144,6 +144,10 @@ WidgetSettings::WidgetSettings(Window * parent, Widget * widget) :
|
|||||||
optPtr++;
|
optPtr++;
|
||||||
grid.nextLine();
|
grid.nextLine();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setCloseHandler([widget]() {
|
||||||
|
widget->update();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user