Fix redundancy
This commit is contained in:
parent
1143623d35
commit
3bedd451e3
@ -156,8 +156,7 @@ class ActivitiesDonut(hippo.CanvasBox, hippo.CanvasItem):
|
|||||||
return
|
return
|
||||||
icon = self._activities[act_id]
|
icon = self._activities[act_id]
|
||||||
self.remove(icon)
|
self.remove(icon)
|
||||||
act = self._activities[act_id]
|
icon.cleanup()
|
||||||
act.cleanup()
|
|
||||||
del self._activities[act_id]
|
del self._activities[act_id]
|
||||||
|
|
||||||
def _add_activity(self, activity):
|
def _add_activity(self, activity):
|
||||||
|
Loading…
Reference in New Issue
Block a user