Prevents user from infinitely banking right in mackie sends subview
This commit is contained in:
parent
17a7dbe06d
commit
bc6461dc76
|
@ -731,8 +731,26 @@ bool SendsSubview::handle_cursor_left_press()
|
|||
|
||||
bool SendsSubview::handle_cursor_right_press()
|
||||
{
|
||||
_current_bank += 1;
|
||||
mcp().redisplay_subview_mode();
|
||||
uint32_t num_sends = 0;
|
||||
if(_subview_stripable->send_name(0).size() > 0)
|
||||
{
|
||||
bool more_sends = true;
|
||||
while(more_sends)
|
||||
{
|
||||
if(_subview_stripable->send_name(num_sends).size() > 0)
|
||||
{
|
||||
num_sends++;
|
||||
} else
|
||||
{
|
||||
more_sends = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(num_sends > _current_bank + 1)
|
||||
{
|
||||
_current_bank += 1;
|
||||
mcp().redisplay_subview_mode();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue