Quick bug fixes.
This commit is contained in:
parent
f00cde619b
commit
98682a5a47
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue