mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-03 14:12:30 -06:00
Manually backport from master, commit 00e09435 and its fixes. Original author Bruno Barbieri.
This commit is contained in:
@@ -967,6 +967,14 @@ public:
|
||||
setValue(QString::fromUtf8("Preferences/Downloads/AutoSuspendOnCompletion"), suspend);
|
||||
}
|
||||
|
||||
bool hibernateWhenDownloadsComplete() const {
|
||||
return value(QString::fromUtf8("Preferences/Downloads/AutoHibernateOnCompletion"), false).toBool();
|
||||
}
|
||||
|
||||
void setHibernateWhenDownloadsComplete(bool hibernate) {
|
||||
setValue(QString::fromUtf8("Preferences/Downloads/AutoHibernateOnCompletion"), hibernate);
|
||||
}
|
||||
|
||||
bool shutdownqBTWhenDownloadsComplete() const {
|
||||
return value(QString::fromUtf8("Preferences/Downloads/AutoShutDownqBTOnCompletion"), false).toBool();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user