mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-02-16 11:26:46 +01:00
- Drag&Drop inside left list and from right to left list
(only available when the left list is sorted by "New Pr#") - Simplified menu/tool bar - FIX: Moving multiple channels down now works correctly - FIX: +/- keys no longer open the cell-editor after moving a channel - Editor for "New Pr#" no longer opens when pressing non-numeric keys - Move up/down is now disabled when left list is not sorted by "New Pr#"
This commit is contained in:
@@ -93,7 +93,7 @@ namespace ChanSort.Api
|
||||
return;
|
||||
|
||||
int delta = (up ? - 1 : +1);
|
||||
foreach (var channel in channels)
|
||||
foreach (var channel in (up ? channels : channels.Reverse()))
|
||||
{
|
||||
int newProgramNr = channel.NewProgramNr + delta;
|
||||
ChannelInfo channelAtNewProgramNr = this.ChannelList.Channels.FirstOrDefault(ch => ch.NewProgramNr == newProgramNr);
|
||||
|
||||
Reference in New Issue
Block a user