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() {
LASTVAL=$(getValue)
LASTVAL=$(getValue ${PROPERTY})
NEWVAL=$(expr ${LASTVAL} + 1)
log "Step up (${NEWVAL})"
setValue ${PROPERTY} ${NEWVAL}
}
stepDown() {
LASTVAL=$(getValue)
LASTVAL=$(getValue ${PROPERTY})
NEWVAL=$(expr ${LASTVAL} - 1)
log "Step down (${NEWVAL})"
setValue ${PROPERTY} ${NEWVAL}
@ -74,8 +74,8 @@ stepDown() {
restoreSettings() {
for PROPERTY in contrast saturation hue
do
RESTVAL=$(getValue)
setValue ${PROPERTY} $(RESTVAL)
RESTVAL=$(getValue ${PROPERTY})
setValue ${PROPERTY} ${RESTVAL}
done
}