mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-13 18:17:08 -07:00
Really get rid of nox dependency in nox mode
This commit is contained in:
parent
76ea7525e3
commit
ab8e35b6b4
2 changed files with 7 additions and 13 deletions
|
@ -1964,16 +1964,21 @@ void QBtSession::readAlerts() {
|
|||
qDebug("Emitting finishedTorrent() signal");
|
||||
emit finishedTorrent(h);
|
||||
qDebug("Received finished alert for %s", qPrintable(h.name()));
|
||||
#ifndef DISABLE_GUI
|
||||
bool will_shutdown = (pref.shutdownWhenDownloadsComplete() ||
|
||||
pref.shutdownqBTWhenDownloadsComplete() ||
|
||||
pref.suspendWhenDownloadsComplete())
|
||||
&& !hasDownloadingTorrents();
|
||||
#else
|
||||
bool will_shutdown = false;
|
||||
#endif
|
||||
// AutoRun program
|
||||
if(pref.isAutoRunEnabled())
|
||||
autoRunExternalProgram(h, will_shutdown);
|
||||
// Mail notification
|
||||
if(pref.isMailNotificationEnabled())
|
||||
sendNotificationEmail(h);
|
||||
#ifndef DISABLE_GUI
|
||||
// Auto-Shutdown
|
||||
if(will_shutdown) {
|
||||
bool suspend = pref.suspendWhenDownloadsComplete();
|
||||
|
@ -1997,6 +2002,7 @@ void QBtSession::readAlerts() {
|
|||
qApp->exit();
|
||||
return;
|
||||
}
|
||||
#endif // DISABLE_GUI
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue