Fix module UPower display device poniter

Force displayDevice to be a nullptr on class setup
This commit is contained in:
SquishyPandaDev 2024-01-22 03:22:19 -05:00
parent 27fec51439
commit 82b632e4ec
No known key found for this signature in database
GPG Key ID: DB0C6B9D9C3EA2BD
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class UPower : public AModule {
Devices devices;
std::mutex m_Mutex;
UpClient *client;
UpDevice *displayDevice;
UpDevice *displayDevice = nullptr;
guint login1_id;
GDBusConnection *login1_connection;
std::unique_ptr<UPowerTooltip> upower_tooltip;