Skip to content

Commit

Permalink
Allow trims to be triggered on switch 'off' condition. Fixes #600
Browse files Browse the repository at this point in the history
  • Loading branch information
PhracturedBlue committed Jun 4, 2016
1 parent ed27f5f commit 2c5dda0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/common/_trim_page.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@ static const char *set_switch_cb(guiObject_t *obj, int dir, void *data)
if(! GUI_IsTextSelectEnabled(obj)){
return _tr("None");
}
u8 changed;
u8 *source = (u8 *)data;
*source = INPUT_SelectAbbrevSource(*source, dir);
return INPUT_SourceNameAbbrevSwitch(tempstring, *source);
*source = INPUT_SelectSource(*source, dir, &changed);
return INPUT_SourceName(tempstring, *source);
}

static const char *set_input_switch_cb(guiObject_t *obj, int newsrc, int value, void *data)
Expand Down

0 comments on commit 2c5dda0

Please sign in to comment.