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() {
|
||||
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue