Lineweight toggle button doesn't refresh drawing

Sometimes clicking the lineweight toggle button in the status bar doesn't refresh the viewport instantly, but I need to regenerate everytime.
This doesn't happen always but from time to time.

What could be the reason? :\

This discussion has been closed.