mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/shared] Fix bug in goto
Change-Id: I328ef6a75da39f33f5155e22484451b6c903c6d2
This commit is contained in:
@@ -32,7 +32,9 @@ void FloatParameterController::didBecomeFirstResponder() {
|
||||
bool FloatParameterController::handleEvent(Ion::Events::Event event) {
|
||||
if (event == Ion::Events::Back) {
|
||||
for (int i = 0; i < numberOfRows()-1; i++) {
|
||||
setParameterAtIndex(i, previousParameterAtIndex(i));
|
||||
if (parameterAtIndex(i) != previousParameterAtIndex(i)) {
|
||||
setParameterAtIndex(i, previousParameterAtIndex(i));
|
||||
}
|
||||
}
|
||||
stackController()->pop();
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user