diff options
author | Dominik Wenger <domonoky@googlemail.com> | 2007-07-14 20:28:21 +0000 |
---|---|---|
committer | Dominik Wenger <domonoky@googlemail.com> | 2007-07-14 20:28:21 +0000 |
commit | 5309d73628b988e191ac99eb749bf562c9edbbf0 (patch) | |
tree | 77b3b8785c4ada4a93ad02292757adfb7ea52399 /rbutil | |
parent | 8235efbf1a4773aa4b02945a243e601057e13060 (diff) |
rbutil caches no the preview images of the themes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13894 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil')
-rw-r--r-- | rbutil/rbutilCtrls.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/rbutil/rbutilCtrls.cpp b/rbutil/rbutilCtrls.cpp index 612491a791..fdede634d3 100644 --- a/rbutil/rbutilCtrls.cpp +++ b/rbutil/rbutilCtrls.cpp @@ -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; |