mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-22 18:02:16 +00:00
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:
parent
bf8d9f5099
commit
4c048779ce
3 changed files with 6 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -159,5 +159,9 @@ namespace ShiftOS.WinForms
|
|||
|
||||
}
|
||||
|
||||
public Image GetImage(string path)
|
||||
{
|
||||
return Applications.FileSkimmer.GetImage(FileSkimmerBackend.GetFileType(path));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue