Skip to content

Commit

Permalink
Button/Toggle: Fix saving of OSC message
Browse files Browse the repository at this point in the history
The save() method of the Button and Toggle Settings updated the
internal string value, but didn't call the OSC parser. A method
doing this was already present in the button/toggle views, but
wasn't used.

This should fix ahmetkizilay/AndrOSC#8.
  • Loading branch information
xou authored and premek committed Feb 11, 2018
1 parent 35b0f26 commit 327138a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public void save() {
}

if(vgOSCPressed.valueChanged()) {
thisControl.getParameters().setOSCButtonPressed(vgOSCPressed.getValue());
thisControl.updateOSCPressed(vgOSCPressed.getValue());
}

if(vgDefaultFillColor.valueChanged()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@ public void save() {
}

if(vgOSCToggleOn.valueChanged()) {
thisControl.getParameters().setOSCToggleOn(vgOSCToggleOn.getValue());
thisControl.updateOSCToggleOn(vgOSCToggleOn.getValue());
}

if(vgOSCToggleOff.valueChanged()) {
thisControl.getParameters().setOSCToggleOff(vgOSCToggleOff.getValue());
thisControl.updateOSCToggleOff(vgOSCToggleOff.getValue());
}

if(vgTriggerOnToggleOff.valueChanged()) {
Expand Down

0 comments on commit 327138a

Please sign in to comment.