aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Entities/CollectionFolder.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-08-13 23:12:26 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-08-13 23:12:26 -0400
commit89dd4f0be1721ef8f8357051cafea2703ab38b2e (patch)
tree50d29ea915b6cc3ea2c326eeeff1d96b5eb44a77 /MediaBrowser.Controller/Entities/CollectionFolder.cs
parent7dbeeadea6edff204276bf87c03c85886d0ff321 (diff)
save library options on dialog close
Diffstat (limited to 'MediaBrowser.Controller/Entities/CollectionFolder.cs')
-rw-r--r--MediaBrowser.Controller/Entities/CollectionFolder.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/Entities/CollectionFolder.cs b/MediaBrowser.Controller/Entities/CollectionFolder.cs
index b81f021da..e120f2e23 100644
--- a/MediaBrowser.Controller/Entities/CollectionFolder.cs
+++ b/MediaBrowser.Controller/Entities/CollectionFolder.cs
@@ -95,9 +95,19 @@ namespace MediaBrowser.Controller.Entities
return System.IO.Path.Combine(path, "options.xml");
}
+ public void UpdateLibraryOptions(LibraryOptions options)
+ {
+ SaveLibraryOptions(Path, options);
+ }
+
public static void SaveLibraryOptions(string path, LibraryOptions options)
{
- XmlSerializer.SerializeToFile(options, GetLibraryOptionsPath(path));
+ lock (LibraryOptions)
+ {
+ LibraryOptions[path] = options;
+
+ XmlSerializer.SerializeToFile(options, GetLibraryOptionsPath(path));
+ }
}
/// <summary>