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:
Dominik Wenger 2007-07-14 20:28:21 +00:00
parent 8235efbf1a
commit 5309d73628

View file

@ -263,10 +263,13 @@ void ThemeCtrl::ThemePreview()
dest = gv->stdpaths->GetUserDataDir() + wxT("" PATH_SEP "download" PATH_SEP)
+ m_currentResolution + wxT("" PATH_SEP) + filename;
if(DownloadURL(src, dest))
if(!wxFileExists(dest))
{
MESG_DIALOG(wxT("Unable to download image."));
return;
if(DownloadURL(src, dest))
{
MESG_DIALOG(wxT("Unable to download image."));
return;
}
}
m_currentimage = dest;