mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
- Moved "Transfer list refresh interval" to advanced settings
This commit is contained in:
@@ -68,11 +68,6 @@ public:
|
||||
return settings.value(QString::fromUtf8("Preferences/General/SpeedInTitleBar"), false).toBool();
|
||||
}
|
||||
|
||||
static unsigned int getRefreshInterval() {
|
||||
QSettings settings("qBittorrent", "qBittorrent");
|
||||
return settings.value(QString::fromUtf8("Preferences/General/RefreshInterval"), 1500).toUInt();
|
||||
}
|
||||
|
||||
static bool useAlternatingRowColors() {
|
||||
QSettings settings("qBittorrent", "qBittorrent");
|
||||
return settings.value(QString::fromUtf8("Preferences/General/AlternatingRowColors"), true).toBool();
|
||||
@@ -888,6 +883,16 @@ public:
|
||||
settings.setValue(QString::fromUtf8("Preferences/Advanced/RecheckOnCompletion"), recheck);
|
||||
}
|
||||
|
||||
static unsigned int getRefreshInterval() {
|
||||
QSettings settings("qBittorrent", "qBittorrent");
|
||||
return settings.value(QString::fromUtf8("Preferences/General/RefreshInterval"), 1500).toUInt();
|
||||
}
|
||||
|
||||
static void setRefreshInterval(uint interval) {
|
||||
QSettings settings("qBittorrent", "qBittorrent");
|
||||
settings.setValue(QString::fromUtf8("Preferences/General/RefreshInterval"), interval);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
#endif // PREFERENCES_H
|
||||
|
||||
Reference in New Issue
Block a user