mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Cache was intended to be disabled per default. Also make the "disable download cache" button in installation window working.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14480 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0f3987ce7f
commit
3075e3bafd
2 changed files with 7 additions and 3 deletions
|
|
@ -176,7 +176,7 @@ void Config::setUserSettings(QSettings *user)
|
|||
if(!QFileInfo(userSettings->value("defaults/cachepath").toString()).isDir())
|
||||
userSettings->setValue("defaults/cachepath", QDir::tempPath());
|
||||
ui.cachePath->setText(userSettings->value("defaults/cachepath").toString());
|
||||
ui.cacheDisable->setChecked(userSettings->value("defaults/cachedisable").toBool());
|
||||
ui.cacheDisable->setChecked(userSettings->value("defaults/cachedisable", true).toBool());
|
||||
ui.cacheOfflineMode->setChecked(userSettings->value("defaults/offline").toBool());
|
||||
QList<QFileInfo> fs = QDir(userSettings->value("defaults/cachepath").toString() + "/rbutil-cache/").entryInfoList(QDir::Files | QDir::NoDotAndDotDot);
|
||||
qint64 sz = 0;
|
||||
|
|
|
|||
|
|
@ -99,8 +99,12 @@ 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());
|
||||
if(!userSettings->value("defaults/cachedisable").toBool()
|
||||
&& !ui.radioCurrent->isChecked()
|
||||
&& !ui.checkBoxCache->isChecked())
|
||||
installer->setCache(userSettings->value("defaults/cachepath",
|
||||
QDir::tempPath()).toString());
|
||||
|
||||
installer->setLogVersion(myversion);
|
||||
installer->setMountPoint(mountPoint);
|
||||
installer->install(logger);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue