app: If the user makes a new gradient, commit the old one