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) #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();
});
} }