Fixing color picker not working
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adsooi 2023-05-24 02:48:35 +02:00
parent 3da51430f1
commit d6dee6a2be
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160

View file

@ -199,9 +199,9 @@ Item {
title: qsTr("Pick new color for %1 %2").arg(obj.constructor.displayType()).arg(obj.name) title: qsTr("Pick new color for %1 %2").arg(obj.constructor.displayType()).arg(obj.name)
onAccepted: { onAccepted: {
history.addToHistory(new HistoryLib.ColorChanged( history.addToHistory(new HistoryLib.ColorChanged(
obj.name, obj.type, obj.color, color.toString() obj.name, obj.type, obj.color, selectedColor.toString()
)) ))
obj.color = color.toString() obj.color = selectedColor.toString()
changed() changed()
} }
} }