I'm not sure toggling the button would be good - because toggling usually implies back and forth to where they just started from.

However I think it would be preferable to make it so that rounded corners always remains rounded no matter how you squash or stretch the rectangle. If they really want to stretch the rounded corners as well, then Convert to Shapes first.