forked from len0rd/rockbox
rbutil caches no the preview images of the themes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13894 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8235efbf1a
commit
5309d73628
1 changed files with 6 additions and 3 deletions
|
|
@ -263,11 +263,14 @@ void ThemeCtrl::ThemePreview()
|
||||||
dest = gv->stdpaths->GetUserDataDir() + wxT("" PATH_SEP "download" PATH_SEP)
|
dest = gv->stdpaths->GetUserDataDir() + wxT("" PATH_SEP "download" PATH_SEP)
|
||||||
+ m_currentResolution + wxT("" PATH_SEP) + filename;
|
+ m_currentResolution + wxT("" PATH_SEP) + filename;
|
||||||
|
|
||||||
|
if(!wxFileExists(dest))
|
||||||
|
{
|
||||||
if(DownloadURL(src, dest))
|
if(DownloadURL(src, dest))
|
||||||
{
|
{
|
||||||
MESG_DIALOG(wxT("Unable to download image."));
|
MESG_DIALOG(wxT("Unable to download image."));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
m_currentimage = dest;
|
m_currentimage = dest;
|
||||||
wxBitmap bmp;
|
wxBitmap bmp;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue