mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
FEATURE: Torrents can be automatically rechecked on completion
This commit is contained in:
@@ -878,6 +878,16 @@ public:
|
||||
settings.setValue(QString::fromUtf8("Preferences/Advanced/IncludeOverhead"), include);
|
||||
}
|
||||
|
||||
static bool recheckTorrentsOnCompletion() {
|
||||
QSettings settings("qBittorrent", "qBittorrent");
|
||||
return settings.value(QString::fromUtf8("Preferences/Advanced/RecheckOnCompletion"), false).toBool();
|
||||
}
|
||||
|
||||
static void recheckTorrentsOnCompletion(bool recheck) {
|
||||
QSettings settings("qBittorrent", "qBittorrent");
|
||||
settings.setValue(QString::fromUtf8("Preferences/Advanced/RecheckOnCompletion"), recheck);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
#endif // PREFERENCES_H
|
||||
|
||||
Reference in New Issue
Block a user