mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 23:47:23 -06:00
FEATURE: Added auto-suspend upon downloads completion feature
This commit is contained in:
@@ -739,6 +739,14 @@ public:
|
||||
setValue(QString::fromUtf8("Preferences/Downloads/AutoShutDownOnCompletion"), shutdown);
|
||||
}
|
||||
|
||||
bool suspendWhenDownloadsComplete() const {
|
||||
return value(QString::fromUtf8("Preferences/Downloads/AutoSuspendOnCompletion"), false).toBool();
|
||||
}
|
||||
|
||||
void setSuspendWhenDownloadsComplete(bool suspend) {
|
||||
setValue(QString::fromUtf8("Preferences/Downloads/AutoSuspendOnCompletion"), suspend);
|
||||
}
|
||||
|
||||
bool shutdownqBTWhenDownloadsComplete() const {
|
||||
return value(QString::fromUtf8("Preferences/Downloads/AutoShutDownqBTOnCompletion"), false).toBool();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user