mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-02-28 09:10:42 +01: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:
@@ -273,10 +273,8 @@ namespace ChanSort.Loader.CmdbBin
|
||||
|
||||
#region Save()
|
||||
|
||||
public override void Save(string tvOutputFile)
|
||||
public override void Save()
|
||||
{
|
||||
// save-as is not supported, the tvOutputFile is ignored
|
||||
|
||||
foreach (var path in this.files)
|
||||
{
|
||||
var name = Path.GetFileName(path).ToLowerInvariant();
|
||||
@@ -331,7 +329,7 @@ namespace ChanSort.Loader.CmdbBin
|
||||
}
|
||||
}
|
||||
|
||||
File.WriteAllBytes(this.FileName, data);
|
||||
File.WriteAllBytes(path, data);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user