mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-01 21:28:07 -06:00
Add option to hibernate computer in Auto-Shutdown menu
This commit is contained in:
@@ -974,6 +974,14 @@ public:
|
||||
void setSuspendWhenDownloadsComplete(bool suspend) {
|
||||
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