core: fix refresh of bars when applying layout (bug #37944, bug #37952)
Version 0.4.0-rc2