Switch to existing instance of an activity if it's already running #410
This commit is contained in:
parent
30e67cc226
commit
e2696086e6
@ -320,11 +320,11 @@ class ActivityCreationHandler(gobject.GObject):
|
|||||||
if count > 1:
|
if count > 1:
|
||||||
logging.debug("Multiple objects has the same activity_id.")
|
logging.debug("Multiple objects has the same activity_id.")
|
||||||
self._handle.object_id = jobjects[0]['uid']
|
self._handle.object_id = jobjects[0]['uid']
|
||||||
self._create_activity()
|
self._launch_activity()
|
||||||
|
|
||||||
def _find_object_error_handler(self, err):
|
def _find_object_error_handler(self, err):
|
||||||
logging.error("Datastore find failed %s" % err)
|
logging.error("Datastore find failed %s" % err)
|
||||||
self._create_activity()
|
self._launch_activity()
|
||||||
|
|
||||||
def create(bundle, activity_handle=None):
|
def create(bundle, activity_handle=None):
|
||||||
"""Create a new activity from its name."""
|
"""Create a new activity from its name."""
|
||||||
|
Loading…
Reference in New Issue
Block a user