From 5ef236869f3a7b1012a2e339b43f94b3f390ad11 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Mon, 27 Aug 2007 17:40:35 +0000 Subject: Implement download caching. Set the folder for the cache data in the configuration dialog. Caching is disabled per default and defaults to the systems temp folder. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14476 a1c6a512-1295-4272-9138-f99709370657 --- rbutil/rbutilqt/install.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rbutil/rbutilqt/install.cpp') diff --git a/rbutil/rbutilqt/install.cpp b/rbutil/rbutilqt/install.cpp index 93e9413d71..b1b8d638fa 100644 --- a/rbutil/rbutilqt/install.cpp +++ b/rbutil/rbutilqt/install.cpp @@ -99,6 +99,8 @@ void Install::accept() installer->setUrl(file); installer->setProxy(proxy); installer->setLogSection("rockboxbase"); + if(!userSettings->value("defaults/cachedisable").toBool()) + installer->setCache(userSettings->value("defaults/cachepath", QDir::tempPath()).toString()); installer->setLogVersion(myversion); installer->setMountPoint(mountPoint); installer->install(logger); -- cgit v1.2.3