- fixed "delete channels", which were added at the end regardless of the user selection

- changed logic how channel lists can control which columns are visible in the UI
- added column for PcrPid
- removed column AudioPid from SCM lists
- added handling for SCM lists where the value of the "hidden" flag is 255. (Guessing the hidden-status based on another field)
This commit is contained in:
hbeham
2019-02-10 15:56:03 +01:00
parent 3c7ef35e80
commit e4c51d12fa
12 changed files with 276 additions and 86 deletions

View File

@@ -372,8 +372,9 @@ namespace ChanSort.Api
}
}
int progNr = GetNewPogramNr(appChannel, ref maxProgNr);
appChannel.NewProgramNr = progNr;
int progNr = this.GetNewProgramNr(appChannel, ref maxProgNr);
if (mode != UnsortedChannelMode.MarkDeleted)
appChannel.NewProgramNr = progNr;
}
}
}
@@ -404,9 +405,9 @@ namespace ChanSort.Api
#endregion
#region GetNewPogramNr()
#region GetNewProgramNr()
private int GetNewPogramNr(ChannelInfo appChannel, ref int maxPrNr)
private int GetNewProgramNr(ChannelInfo appChannel, ref int maxPrNr)
{
int prNr = appChannel.NewProgramNr;
if (prNr > maxPrNr)