Update look of activities donut to match wiki
If we remove current activity, set _current_activity to None
This commit is contained in:
@@ -135,6 +135,9 @@ class HomeModel(gobject.GObject):
|
||||
self.emit('activity-added', activity)
|
||||
|
||||
def _internal_remove_activity(self, activity):
|
||||
if activity == self._current_activity:
|
||||
self._current_activity = None
|
||||
|
||||
self.emit('activity-removed', activity)
|
||||
act_id = activity.get_id()
|
||||
del self._activities[act_id]
|
||||
|
||||
Reference in New Issue
Block a user