mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-19 04:52:12 +01:00
OP-1458 Deregister previous channel when the back button is pressed
This commit is contained in:
parent
6633e788b1
commit
fa1bd4c946
@ -911,7 +911,7 @@ void ConfigInputWidget::prevChannel()
|
||||
for (int i = 1; i < order.length(); i++) {
|
||||
if (order[i] == currentChannelNum) {
|
||||
if (!usedChannels.isEmpty() &&
|
||||
usedChannels.back().channelIndex == currentChannelNum) {
|
||||
usedChannels.back().channelIndex == order[i - 1]) {
|
||||
usedChannels.removeLast();
|
||||
}
|
||||
setChannel(order[i - 1]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user