Store map path in MapPreview.

This commit is contained in:
Paul Chote
2016-02-05 21:29:23 +00:00
parent 6628bc046f
commit d5e3fbf452
4 changed files with 7 additions and 4 deletions

View File

@@ -57,6 +57,8 @@ namespace OpenRA
MapCache cache;
public readonly string Uid;
public string Path { get; private set; }
public string Title { get; private set; }
public string Type { get; private set; }
public string Author { get; private set; }
@@ -118,6 +120,7 @@ namespace OpenRA
public void UpdateFromMap(Map m, MapClassification classification)
{
Map = m;
Path = m.Path;
Title = m.Title;
Type = m.Type;
Type = m.Type;
@@ -231,7 +234,7 @@ namespace OpenRA
return;
}
mapPath = Path.Combine(baseMapPath, res.Headers["Content-Disposition"].Replace("attachment; filename = ", ""));
mapPath = System.IO.Path.Combine(baseMapPath, res.Headers["Content-Disposition"].Replace("attachment; filename = ", ""));
}
Action<DownloadProgressChangedEventArgs> onDownloadProgress = i => { DownloadBytes = i.BytesReceived; DownloadPercentage = i.ProgressPercentage; };