Commit c2a302c8 authored by Dan Pascu's avatar Dan Pascu

Fixed publishing internal presence states

parent 4688d596
...@@ -372,10 +372,7 @@ class MainWindow(base_class, ui_class): ...@@ -372,10 +372,7 @@ class MainWindow(base_class, ui_class):
if not self.account_state.state.internal: if not self.account_state.state.internal:
self.saved_account_state = None self.saved_account_state = None
settings = BlinkSettings() settings = BlinkSettings()
if self.saved_account_state: settings.presence.current_state = PresenceState(self.account_state.state, self.account_state.note)
settings.presence.current_state = PresenceState(*self.saved_account_state)
else:
settings.presence.current_state = PresenceState(self.account_state.state, self.account_state.note)
settings.presence.state_history = [PresenceState(state, note) for state, note in self.account_state.history] settings.presence.state_history = [PresenceState(state, note) for state, note in self.account_state.history]
settings.save() settings.save()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment