mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
- Created "Advanced settings" tab in program preferences and moved "Disk cache" there
This commit is contained in:
@@ -181,9 +181,14 @@ public:
|
||||
return settings.setValue(QString::fromUtf8("Preferences/Downloads/PreAllocation"), enabled);
|
||||
}
|
||||
|
||||
static int diskCacheSize() {
|
||||
static uint diskCacheSize() {
|
||||
QSettings settings("qBittorrent", "qBittorrent");
|
||||
return settings.value(QString::fromUtf8("Preferences/Downloads/DiskCache"), 16).toInt();
|
||||
return settings.value(QString::fromUtf8("Preferences/Downloads/DiskCache"), 16).toUInt();
|
||||
}
|
||||
|
||||
static void setDiskCacheSize(uint size) {
|
||||
QSettings settings("qBittorrent", "qBittorrent");
|
||||
settings.setValue(QString::fromUtf8("Preferences/Downloads/DiskCache"), size);
|
||||
}
|
||||
|
||||
static bool useAdditionDialog() {
|
||||
|
||||
Reference in New Issue
Block a user