Quick bug fixes.

This commit is contained in:
fewtarius 2023-03-31 12:28:38 +00:00
parent f00cde619b
commit 98682a5a47
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A

View file

@ -58,14 +58,14 @@ setValue() {
} }
stepUp() { stepUp() {
LASTVAL=$(getValue) LASTVAL=$(getValue ${PROPERTY})
NEWVAL=$(expr ${LASTVAL} + 1) NEWVAL=$(expr ${LASTVAL} + 1)
log "Step up (${NEWVAL})" log "Step up (${NEWVAL})"
setValue ${PROPERTY} ${NEWVAL} setValue ${PROPERTY} ${NEWVAL}
} }
stepDown() { stepDown() {
LASTVAL=$(getValue) LASTVAL=$(getValue ${PROPERTY})
NEWVAL=$(expr ${LASTVAL} - 1) NEWVAL=$(expr ${LASTVAL} - 1)
log "Step down (${NEWVAL})" log "Step down (${NEWVAL})"
setValue ${PROPERTY} ${NEWVAL} setValue ${PROPERTY} ${NEWVAL}
@ -74,8 +74,8 @@ stepDown() {
restoreSettings() { restoreSettings() {
for PROPERTY in contrast saturation hue for PROPERTY in contrast saturation hue
do do
RESTVAL=$(getValue) RESTVAL=$(getValue ${PROPERTY})
setValue ${PROPERTY} $(RESTVAL) setValue ${PROPERTY} ${RESTVAL}
done done
} }