Properly refresh the CurveWidget when a curve visibilty changed.