1
0
Fork 0

Merge pull request #697 from zacikpa/ppd-fix-adding-hold

tuned-ppd: Use effective hold profile when adding profile holds
This commit is contained in:
Jaroslav Škarvada 2025-01-13 22:32:57 +01:00 committed by GitHub
commit fb1814fe7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -179,7 +179,7 @@ class ProfileHoldManager(object):
log.info("Adding hold '%s': profile '%s' by application '%s'" % (cookie, profile, app_id))
self._holds[cookie] = ProfileHold(profile, reason, app_id, watch)
exports.property_changed("ActiveProfileHolds", self.as_dbus_array())
self._controller.switch_profile(profile)
self._controller.switch_profile(self._effective_hold_profile())
return cookie
def has(self, cookie):