mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-02-08 07:29:03 +01:00
fixed: removing channels from a favorite list caused incorrect reordering
This commit is contained in:
@@ -384,10 +384,10 @@ namespace ChanSort.Api
|
||||
if (sortedFav && !this.DataRoot.AllowGapsInFavNumbers)
|
||||
{
|
||||
int i = 0;
|
||||
foreach (var channel in favList.Channels)
|
||||
foreach (var channel in favList.Channels.OrderBy(c => c.FavIndex[favIndex]))
|
||||
{
|
||||
if (channel.FavIndex[i] != -1)
|
||||
channel.FavIndex[i] = ++i;
|
||||
if (channel.FavIndex[favIndex] != -1)
|
||||
channel.FavIndex[favIndex] = ++i;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
ChanSort Change Log
|
||||
===================
|
||||
|
||||
2020-02-11B
|
||||
- fixed: removing channels from a favorite list caused incorrect reordering
|
||||
|
||||
2020-02-11
|
||||
- Philips: show and edit customized titles of favorite lists
|
||||
- fixed non-unique numbers in mixed-source favorite lists when using "Add to Fav A" (Panasonic, Hisense, Sony, Philips)
|
||||
|
||||
Reference in New Issue
Block a user