mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 23:47:23 -06:00
Add option to hibernate computer in Auto-Shutdown menu
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
#endif
|
||||
|
||||
const qlonglong MAX_ETA = 8640000;
|
||||
enum shutDownAction { NO_SHUTDOWN, SHUTDOWN_COMPUTER, SUSPEND_COMPUTER, HIBERNATE_COMPUTER };
|
||||
|
||||
/* Miscellaneaous functions that can be useful */
|
||||
namespace misc
|
||||
@@ -75,7 +76,7 @@ namespace misc
|
||||
}
|
||||
|
||||
#ifndef DISABLE_GUI
|
||||
void shutdownComputer(bool sleep=false);
|
||||
void shutdownComputer(shutDownAction action=SHUTDOWN_COMPUTER);
|
||||
#endif
|
||||
|
||||
QString parseHtmlLinks(const QString &raw_text);
|
||||
|
||||
Reference in New Issue
Block a user