Fix layerstyle creation so they are kept after reload
When changing the layerstyle from krita layerstyle dialog, the style was updated correctly in Krita, but after saving, closing and then opening again the file, the first style was set in place of all the styles.
This came from the UUID of the style that wasn't changed, so it had the same one when using the krita dialog. This was working well when copying the style.
It should fix 464257
Test Plan
I created multiple styles on multiple layers from the krita dialog. Then I saved the file, closed krita and opened the file again. The style were correctly displayed.
Formalities Checklist
-
I confirmed this builds. -
I confirmed Krita ran and the relevant functions work. -
I tested the relevant unit tests and can confirm they are not broken. (If not possible, don't hesitate to ask for help!) -
I made sure my commits build individually and have good descriptions as per KDE guidelines. -
I made sure my code conforms to the standards set in the HACKING file. -
I can confirm the code is licensed and attributed appropriately, and that unattributed code is mine, as per KDE Licensing Policy.