mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-05-07 21:35:55 +02:00
- removed superfluous parameter from SerializerBase.Save()
- added "Pooling=False" parameter to all Sqlite connection strings to prevent open file locks after closing the connection and to avoid extreme delays when using CloseAllPools()
- C# code refactoring "using var" instead of "using ( ) { }" where possible
This commit is contained in:
@@ -391,7 +391,7 @@ class Serializer : SerializerBase
|
||||
|
||||
#region Save()
|
||||
|
||||
public override void Save(string tvOutputFile)
|
||||
public override void Save()
|
||||
{
|
||||
var fav = this.doc["servicelist"]["favorites"];
|
||||
var elements = fav.GetElementsByTagName("favorite-item");
|
||||
@@ -456,8 +456,7 @@ class Serializer : SerializerBase
|
||||
foreach (XmlNode item in lcn)
|
||||
fav.AppendChild(item);
|
||||
|
||||
doc.Save(tvOutputFile);
|
||||
this.FileName = tvOutputFile;
|
||||
doc.Save(this.FileName);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user