Update look of activities donut to match wiki

If we remove current activity, set _current_activity to None
This commit is contained in:
Owen Williams
2007-01-31 11:16:33 -05:00
parent f196eb264e
commit 165bb9213f
2 changed files with 39 additions and 12 deletions
+3
View File
@@ -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]