mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-02 09:55:55 +00:00
Fix incorrect state
Fix up f3f9cfe44ed49d5bf3de0e318fa9c8ec48645ca4.
This commit is contained in:
parent
0bcc1cf4a0
commit
1874fd7f93
@ -80,15 +80,15 @@ void PowerManagementInhibitor::requestIdle()
|
|||||||
if ((m_state == Error) || (m_state == Idle) || (m_state == RequestIdle) || (m_state == RequestBusy))
|
if ((m_state == Error) || (m_state == Idle) || (m_state == RequestIdle) || (m_state == RequestBusy))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
m_state = RequestIdle;
|
|
||||||
|
|
||||||
if (m_manager == ManagerType::Systemd)
|
if (m_manager == ManagerType::Systemd)
|
||||||
{
|
{
|
||||||
QDBusUnixFileDescriptor dummy;
|
m_fd = {};
|
||||||
m_fd.swap(dummy);
|
m_state = Idle;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_state = RequestIdle;
|
||||||
|
|
||||||
const QString method = (m_manager == ManagerType::Gnome)
|
const QString method = (m_manager == ManagerType::Gnome)
|
||||||
? u"Uninhibit"_s
|
? u"Uninhibit"_s
|
||||||
: u"UnInhibit"_s;
|
: u"UnInhibit"_s;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user