mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-06-09 20:41:45 +02:00
- LG GlobalClone: favorites are now saved to the file
This commit is contained in:
@@ -373,6 +373,7 @@ namespace ChanSort.Loader.GlobalClone
|
||||
if (ch == null) continue; // ignore proxy channels from reference lists
|
||||
var nameBytes = Encoding.UTF8.GetBytes(ch.Name);
|
||||
bool nameNeedsEncoding = nameBytes.Length != ch.Name.Length;
|
||||
string mapType = "";
|
||||
|
||||
foreach (XmlNode node in ch.XmlNode.ChildNodes)
|
||||
{
|
||||
@@ -415,6 +416,13 @@ namespace ChanSort.Loader.GlobalClone
|
||||
case "isUserSelCHNo":
|
||||
node.InnerText = "1";
|
||||
break;
|
||||
case "mapType":
|
||||
mapType = node.InnerText;
|
||||
break;
|
||||
case "mapAttr":
|
||||
if (mapType == "1")
|
||||
node.InnerText = ((int) ch.Favorites).ToString();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user