Use Undo::maybeDone for swatch color slider

This commit prevents undo history from being spammed by "Change color history" entries on updating the Swatch color using the color slider.

Fixes: #5486 (closed)

Before

Before

After

After

Merge request reports

Loading