fix(color): built in widgets may not update when widget settings are changed (#7135)
This commit is contained in:
@@ -106,7 +106,7 @@ class Widget : public ButtonBase
|
|||||||
virtual bool enableFullScreenRE() const { return true; }
|
virtual bool enableFullScreenRE() const { return true; }
|
||||||
|
|
||||||
// Called when the widget options have changed
|
// Called when the widget options have changed
|
||||||
virtual void updateWithoutRefresh() {}
|
virtual void updateWithoutRefresh() { update(); }
|
||||||
virtual void update() {}
|
virtual void update() {}
|
||||||
|
|
||||||
// Called at regular time interval if the widget is hidden or off screen
|
// Called at regular time interval if the widget is hidden or off screen
|
||||||
|
|||||||
@@ -330,8 +330,6 @@ void LuaWidget::foreground()
|
|||||||
|
|
||||||
void LuaWidget::updateWithoutRefresh()
|
void LuaWidget::updateWithoutRefresh()
|
||||||
{
|
{
|
||||||
Widget::updateWithoutRefresh();
|
|
||||||
|
|
||||||
if (lsWidgets == 0 || errorMessage || luaFactory()->updateFunction == LUA_REFNIL) return;
|
if (lsWidgets == 0 || errorMessage || luaFactory()->updateFunction == LUA_REFNIL) return;
|
||||||
|
|
||||||
luaSetInstructionsLimit(lsWidgets, MAX_INSTRUCTIONS);
|
luaSetInstructionsLimit(lsWidgets, MAX_INSTRUCTIONS);
|
||||||
|
|||||||
Reference in New Issue
Block a user