Commit d4036689 authored by Saul Ibarra's avatar Saul Ibarra

Set echo tail length to default value on startup

parent a5c2b88c
......@@ -32,6 +32,7 @@ from zope.interface import implements
from sipsimple.account import Account, AccountManager, BonjourAccount
from sipsimple.addressbook import Contact, Group
from sipsimple.application import SIPApplication
from sipsimple.configuration import DefaultValue
from sipsimple.configuration.settings import SIPSimpleSettings
from sipsimple.storage import FileStorage
from sipsimple.threading import run_in_twisted_thread
......@@ -241,6 +242,10 @@ class Blink(QApplication):
if settings.google_contacts.authorization_token is InvalidToken:
self.main_window.google_contacts_dialog.open_for_incorrect_password()
self.update_manager.initialize()
if settings.audio.tail_length:
# Fix old hardcoded setting value
settings.audio.tail_length = DefaultValue
settings.save()
def _NH_SIPApplicationWillEnd(self, notification):
self.ip_address_monitor.stop()
......
......@@ -1024,7 +1024,7 @@ class PreferencesWindow(base_class, ui_class):
def _SH_EnableEchoCancellingButtonClicked(self, checked):
settings = SIPSimpleSettings()
settings.audio.tail_length = 200 if checked else 0
settings.audio.tail_length = DefaultValue if checked else 0
settings.save()
# Audio codecs signal handlers
......
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