Page Bar on top of screen doesn't refresh

hi when using the setHidden page function, the page bar on top of the display doesn’t refresh on the moment of using the function. Once you press the bar , only then the refresh happens.

I’s a use case in the System-8 preset:

function pluginSel(valueObject,value)
  pages.get(1): setHidden(value==1)
  pages.get(2): setHidden(value==1)
  pages.get(3): setHidden(value~=1)
  pages.get(4): setHidden(value~=1)
end
1 Like