Skip to content

Commit

Permalink
Merge pull request Alexays#3266 from luttermann/master
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexays committed May 14, 2024
2 parents cb2d54a + 3c075bc commit 912d0e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/upower.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ void UPower::setDisplayDevice() {
auto thisPtr{static_cast<UPower *>(user_data)};
upDevice.upDevice = static_cast<UpDevice *>(data);
thisPtr->getUpDeviceInfo(upDevice);
if (upDevice.nativePath == nullptr) return;
if (0 == std::strcmp(upDevice.nativePath, thisPtr->nativePath_.c_str())) {
// Unref current upDevice
if (thisPtr->upDevice_.upDevice != NULL) g_object_unref(thisPtr->upDevice_.upDevice);
Expand Down

0 comments on commit 912d0e8

Please sign in to comment.