Fix downloader UI

It now shoes the icon of the file it's downloading... and I just
misspelled 'shows' as 'shoes' and don't feel like correcting it.
This commit is contained in:
Michael 2017-02-05 11:54:33 -05:00
parent bf8d9f5099
commit 4c048779ce
3 changed files with 6 additions and 3 deletions

View file

@ -103,8 +103,6 @@ namespace ShiftOS.WinForms.Applications
public void ShiftnetNavigate(string Url, bool pushHistory = true)
{
if (Url.EndsWith(".rnp") || !Url.Contains("."))
{
if (!string.IsNullOrEmpty(CurrentUrl) && pushHistory)

View file

@ -159,5 +159,9 @@ namespace ShiftOS.WinForms
}
public Image GetImage(string path)
{
return Applications.FileSkimmer.GetImage(FileSkimmerBackend.GetFileType(path));
}
}
}

View file

@ -131,7 +131,7 @@ namespace ShiftOS.Engine
public static System.Drawing.Image GetImage(string filepath)
{
return new Bitmap(42, 42);
return _fs.GetImage(filepath);
}
}
@ -143,6 +143,7 @@ namespace ShiftOS.Engine
void OpenFile(string filepath);
void GetPath(string[] filetypes, FileOpenerStyle style, Action<string> callback);
void OpenDirectory(string path);
Image GetImage(string path);
}