瀏覽代碼

fixed image swap function in editor

Luke Pulverenti 11 年之前
父節點
當前提交
6ff59b7e59
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      MediaBrowser.Controller/Entities/BaseItem.cs

+ 1 - 3
MediaBrowser.Controller/Entities/BaseItem.cs

@@ -1351,9 +1351,7 @@ namespace MediaBrowser.Controller.Entities
 
 
             FileSystem.SwapFiles(path1, path2);
             FileSystem.SwapFiles(path1, path2);
 
 
-            info1.Path = path2;
-            info2.Path = path1;
-
+            // Refresh these values
             info1.DateModified = FileSystem.GetLastWriteTimeUtc(info1.Path);
             info1.DateModified = FileSystem.GetLastWriteTimeUtc(info1.Path);
             info2.DateModified = FileSystem.GetLastWriteTimeUtc(info2.Path);
             info2.DateModified = FileSystem.GetLastWriteTimeUtc(info2.Path);