mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-06 15:42:32 -06:00
FEATURE: Added feature to shutdown qbittorrent on torrents completion
This commit is contained in:
@@ -935,6 +935,16 @@ public:
|
||||
settings.setValue(QString::fromUtf8("Preferences/Downloads/AutoShutDownOnCompletion"), shutdown);
|
||||
}
|
||||
|
||||
static bool shutdownqBTWhenDownloadsComplete() {
|
||||
QIniSettings settings("qBittorrent", "qBittorrent");
|
||||
return settings.value(QString::fromUtf8("Preferences/Downloads/AutoShutDownqBTOnCompletion"), false).toBool();
|
||||
}
|
||||
|
||||
static void setShutdownqBTWhenDownloadsComplete(bool shutdown) {
|
||||
QIniSettings settings("qBittorrent", "qBittorrent");
|
||||
settings.setValue(QString::fromUtf8("Preferences/Downloads/AutoShutDownqBTOnCompletion"), shutdown);
|
||||
}
|
||||
|
||||
static uint diskCacheSize() {
|
||||
QIniSettings settings("qBittorrent", "qBittorrent");
|
||||
return settings.value(QString::fromUtf8("Preferences/Downloads/DiskCache"), 16).toUInt();
|
||||
|
||||
Reference in New Issue
Block a user