mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 00:33:09 -07:00
Blind implementation for auto-shutdown on Windows
This commit is contained in:
parent
e311239a28
commit
d15e6a4847
1 changed files with 3 additions and 1 deletions
|
@ -233,7 +233,9 @@ void misc::shutdownComputer() {
|
||||||
|
|
||||||
AEDisposeDesc(&eventReply);
|
AEDisposeDesc(&eventReply);
|
||||||
#endif
|
#endif
|
||||||
// TODO: Windows support
|
#ifdef Q_WS_WIN
|
||||||
|
InitiateSystemShutdownA(0, qPrintable(tr("qBittorrent will shutdown the computer now because all downloads are complete.")), 10, true, false);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
QString misc::truncateRootFolder(boost::intrusive_ptr<torrent_info> t) {
|
QString misc::truncateRootFolder(boost::intrusive_ptr<torrent_info> t) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue