mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-10 23:42:46 -07:00
parent
f3f4610ba4
commit
34d30ed031
20 changed files with 31 additions and 75 deletions
|
@ -111,7 +111,7 @@ namespace
|
|||
}
|
||||
}
|
||||
|
||||
void Utils::Misc::shutdownComputer(const ShutdownDialogAction &action)
|
||||
void Utils::Misc::shutdownComputer([[maybe_unused]] const ShutdownDialogAction &action)
|
||||
{
|
||||
#if defined(Q_OS_WIN)
|
||||
HANDLE hToken; // handle to process token
|
||||
|
@ -247,9 +247,6 @@ void Utils::Misc::shutdownComputer(const ShutdownDialogAction &action)
|
|||
QDBusConnection::systemBus());
|
||||
halIface.call(u"Shutdown"_s);
|
||||
}
|
||||
|
||||
#else
|
||||
Q_UNUSED(action);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue