mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 16:58:06 -06:00
Use ConsoleKit to shutdown the system instead of HAL (deprecated)
use UPower to suspend the system instead of HAL (deprecated) Rewrote computer shutdown/suspend code to avoid data loss
This commit is contained in:
@@ -69,6 +69,7 @@ public:
|
||||
private:
|
||||
explicit QBtSession();
|
||||
static QBtSession* m_instance;
|
||||
enum shutDownAction { NO_SHUTDOWN, SHUTDOWN_COMPUTER, SUSPEND_COMPUTER };
|
||||
|
||||
public:
|
||||
static QBtSession* instance();
|
||||
@@ -267,6 +268,7 @@ private:
|
||||
// Tracker
|
||||
QPointer<QTracker> m_tracker;
|
||||
TorrentSpeedMonitor *m_speedMonitor;
|
||||
shutDownAction m_shutdownAct;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user