mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
Fix inhibit system functionality. Closes #766.
This commit is contained in:
@@ -1417,11 +1417,7 @@ void MainWindow::on_actionAutoShutdown_system_toggled(bool enabled)
|
||||
|
||||
void MainWindow::checkForActiveTorrents()
|
||||
{
|
||||
const TorrentStatusReport report = transferList->getSourceModel()->getTorrentStatusReport();
|
||||
if (report.nb_active > 0) // Active torrents are present; prevent system from suspend
|
||||
m_pwr->setActivityState(true);
|
||||
else
|
||||
m_pwr->setActivityState(false);
|
||||
m_pwr->setActivityState(transferList->getSourceModel()->inhibitSystem());
|
||||
}
|
||||
|
||||
QIcon MainWindow::getSystrayIcon() const
|
||||
|
||||
Reference in New Issue
Block a user