fix saving _last_SHOW activity / mood when we unset them.
This commit is contained in:
parent
ce71f40f7d
commit
b7fa1a152f
|
@ -763,8 +763,8 @@ class ChangeStatusMessageDialog:
|
|||
def on_activity_button_clicked(self, widget):
|
||||
self.countdown_enabled = False
|
||||
def on_response(activity, subactivity, text):
|
||||
self.pep_dict['activity'] = activity
|
||||
self.pep_dict['subactivity'] = subactivity
|
||||
self.pep_dict['activity'] = activity or ''
|
||||
self.pep_dict['subactivity'] = subactivity or ''
|
||||
self.pep_dict['activity_text'] = text
|
||||
self.draw_activity()
|
||||
ChangeActivityDialog(on_response, self.pep_dict['activity'],
|
||||
|
@ -773,7 +773,7 @@ class ChangeStatusMessageDialog:
|
|||
def on_mood_button_clicked(self, widget):
|
||||
self.countdown_enabled = False
|
||||
def on_response(mood, text):
|
||||
self.pep_dict['mood'] = mood
|
||||
self.pep_dict['mood'] = mood or ''
|
||||
self.pep_dict['mood_text'] = text
|
||||
self.draw_mood()
|
||||
ChangeMoodDialog(on_response, self.pep_dict['mood'],
|
||||
|
|
Loading…
Reference in New Issue