Ensure local activities emit ActivityAppeared signal when shared
This commit is contained in:
parent
15febc6620
commit
94431a66eb
@ -321,6 +321,12 @@ class PresenceService(dbus.service.Object):
|
||||
self._activities[actid] = activity
|
||||
activity._share(callbacks)
|
||||
|
||||
# local activities are valid at creation by definition, but we can't
|
||||
# connect to the activity's validity-changed signal until its already
|
||||
# issued the signal, which happens in the activity's constructor
|
||||
# for local activities.
|
||||
self._activity_validity_changed_cb(activity, activity.props.valid)
|
||||
|
||||
def _activity_validity_changed_cb(self, activity, valid):
|
||||
if valid:
|
||||
self.ActivityAppeared(activity.object_path())
|
||||
|
Loading…
Reference in New Issue
Block a user