description working with icon
improving github container
This commit is contained in:
parent
02db4f7052
commit
d0d5b992d7
8 changed files with 61 additions and 103 deletions
|
|
@ -178,18 +178,21 @@ namespace MatterHackers.MatterControl.Library
|
|||
{
|
||||
lock (locker)
|
||||
{
|
||||
FileInfo[] dirContents = JsonConvert.DeserializeObject<FileInfo[]>(content);
|
||||
|
||||
// read in data
|
||||
foreach (FileInfo file in dirContents)
|
||||
if (!string.IsNullOrEmpty(content) && !content.Contains("\"Not Found\""))
|
||||
{
|
||||
if (file.type == "file")
|
||||
{
|
||||
imageUrlCache.Add((file.name, file.download_url));
|
||||
}
|
||||
}
|
||||
FileInfo[] dirContents = JsonConvert.DeserializeObject<FileInfo[]>(content);
|
||||
|
||||
imageUrlCaches[key] = imageUrlCache;
|
||||
// read in data
|
||||
foreach (FileInfo file in dirContents)
|
||||
{
|
||||
if (file.type == "file")
|
||||
{
|
||||
imageUrlCache.Add((file.name, file.download_url));
|
||||
}
|
||||
}
|
||||
|
||||
imageUrlCaches[key] = imageUrlCache;
|
||||
}
|
||||
}
|
||||
},
|
||||
false,
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ namespace MatterHackers.MatterControl.Library
|
|||
|
||||
public string FileKey => Url.GetLongHashCode().ToString();
|
||||
|
||||
public string FileExtension => Path.GetExtension(Name).Substring(1);
|
||||
public string FileExtension => Path.GetExtension(FileName).Substring(1);
|
||||
|
||||
public static string GetLibraryPath(string fileKey, string fileExtension)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue