mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-05-07 12:57:11 +02:00
- check for updates can now handle multiple updates on a specific day
- fixed applying favorites from a reference list (it showed fav letters on the channels, but the fav lists were empty) - added Polish translation (thanks to Jakub Driver!) - potential fix for Samsung 1352.0 format, which can contain channels marked as deleted
This commit is contained in:
@@ -380,7 +380,8 @@ namespace ChanSort.Ui
|
||||
}
|
||||
this.mnuInputSource.ClearLinks();
|
||||
|
||||
XtraTabPage firstNonEmpty = null;
|
||||
XtraTabPage mostChannels = null;
|
||||
int mostChannelsCount = 0;
|
||||
var i = 0;
|
||||
foreach (var list in this.DataRoot.ChannelLists)
|
||||
{
|
||||
@@ -388,8 +389,12 @@ namespace ChanSort.Ui
|
||||
continue;
|
||||
var tab = this.tabChannelList.TabPages.Add(list.Caption);
|
||||
tab.Tag = list;
|
||||
if (firstNonEmpty == null && list.Count > 0)
|
||||
firstNonEmpty = tab;
|
||||
if (mostChannels == null || list.Count > mostChannelsCount)
|
||||
{
|
||||
mostChannels = tab;
|
||||
mostChannelsCount = list.Count;
|
||||
}
|
||||
|
||||
var item = new BarButtonItem(this.barManager1, list.Caption);
|
||||
item.ItemShortcut = new BarShortcut((Keys) ((int) (Keys.Alt | Keys.D1) + i));
|
||||
item.Tag = i;
|
||||
@@ -400,12 +405,12 @@ namespace ChanSort.Ui
|
||||
|
||||
if (tabChannelList.TabPages.Count > 0)
|
||||
{
|
||||
if (firstNonEmpty == null)
|
||||
firstNonEmpty = tabChannelList.TabPages[0];
|
||||
if (firstNonEmpty == this.tabChannelList.SelectedTabPage)
|
||||
this.ShowChannelList((ChannelList) firstNonEmpty.Tag);
|
||||
if (mostChannels == null)
|
||||
mostChannels = tabChannelList.TabPages[0];
|
||||
if (mostChannels == this.tabChannelList.SelectedTabPage)
|
||||
this.ShowChannelList((ChannelList)mostChannels.Tag);
|
||||
else
|
||||
this.tabChannelList.SelectedTabPage = firstNonEmpty;
|
||||
this.tabChannelList.SelectedTabPage = mostChannels;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user