Commit 27d17a20 authored by Tijmen de Mes's avatar Tijmen de Mes

Load message manager on application start

parent b5d57429
...@@ -24,6 +24,7 @@ from blink.accounts import AccountModel, ActiveAccountModel, ServerToolsAccountM ...@@ -24,6 +24,7 @@ from blink.accounts import AccountModel, ActiveAccountModel, ServerToolsAccountM
from blink.contacts import Contact, ContactEditorDialog, ContactModel, ContactSearchModel, URIUtils from blink.contacts import Contact, ContactEditorDialog, ContactModel, ContactSearchModel, URIUtils
from blink.filetransferwindow import FileTransferWindow from blink.filetransferwindow import FileTransferWindow
from blink.history import HistoryManager from blink.history import HistoryManager
from blink.messages import MessageManager
from blink.preferences import PreferencesWindow from blink.preferences import PreferencesWindow
from blink.sessions import ConferenceDialog, SessionManager, AudioSessionModel, StreamDescription from blink.sessions import ConferenceDialog, SessionManager, AudioSessionModel, StreamDescription
from blink.configuration.datatypes import IconDescriptor, FileURL, PresenceState from blink.configuration.datatypes import IconDescriptor, FileURL, PresenceState
...@@ -797,6 +798,7 @@ class MainWindow(base_class, ui_class): ...@@ -797,6 +798,7 @@ class MainWindow(base_class, ui_class):
self.account_state.history = [(item.state, item.note) for item in blink_settings.presence.state_history] self.account_state.history = [(item.state, item.note) for item in blink_settings.presence.state_history]
state = getattr(AccountState, blink_settings.presence.current_state.state, AccountState.Available) state = getattr(AccountState, blink_settings.presence.current_state.state, AccountState.Available)
self.account_state.setState(state, blink_settings.presence.current_state.note) self.account_state.setState(state, blink_settings.presence.current_state.note)
MessageManager()
def _NH_AudioDevicesDidChange(self, notification): def _NH_AudioDevicesDidChange(self, notification):
self.output_device_menu.clear() # because actions are owned by the menu and only referenced by their corresponding action groups, self.output_device_menu.clear() # because actions are owned by the menu and only referenced by their corresponding action groups,
......
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