Hi everyone,
I have made a fix for a problem with stacked files.
When Media Portal shows a file list that contains stacked files, then only the size of the first file is shown (The sum of all stacked files should be show). I have made a simple fix that corrects this issue.
In GUIVideofiles.cs / LoadDirectory
...
if (Utils.ShouldStack(item1.Path, item2.Path))
{
if (String.Compare(item1.Path, item2.Path, true) > 0)
{
addItem = false;
// Update to reflect the stacked size
item2.FileInfo.Length +=item1.FileInfo.Length;
}
}
...
How do I get my change commited to CVS.
P.S I also have some other fixes that I would like to have added.
I have made a fix for a problem with stacked files.
When Media Portal shows a file list that contains stacked files, then only the size of the first file is shown (The sum of all stacked files should be show). I have made a simple fix that corrects this issue.
In GUIVideofiles.cs / LoadDirectory
...
if (Utils.ShouldStack(item1.Path, item2.Path))
{
if (String.Compare(item1.Path, item2.Path, true) > 0)
{
addItem = false;
// Update to reflect the stacked size
item2.FileInfo.Length +=item1.FileInfo.Length;
}
}
...
How do I get my change commited to CVS.
P.S I also have some other fixes that I would like to have added.