mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 19:28:09 -06:00
Clean out memmos when switching algos.
This commit is contained in:
parent
8ce5c258d3
commit
ee1f95ea3b
@ -7,6 +7,7 @@ import widgetUtils
|
||||
import config
|
||||
import languageHandler
|
||||
import output
|
||||
import application
|
||||
from wxUI.dialogs import configuration
|
||||
from wxUI import commonMessageDialogs
|
||||
from extra.autocompletionUsers import settings
|
||||
@ -153,6 +154,7 @@ class accountSettingsController(globalSettingsController):
|
||||
self.config["general"]["retweet_mode"] = "comment"
|
||||
if self.config["general"]["use_modern_audio_algo"] != self.dialog.get_value("general", "use_modern_audio_algo"):
|
||||
self.config["general"]["use_modern_audio_algo"] = self.dialog.get_value("general", "use_modern_audio_algo")
|
||||
self.buffer.session.clean_is_audio_memmos()
|
||||
buffers_list = self.dialog.buffers.get_list()
|
||||
if set(self.config["general"]["buffer_order"]) != set(buffers_list):
|
||||
self.needs_restart = True
|
||||
|
@ -415,4 +415,12 @@ class Session(object):
|
||||
for key,value in self.db.items():
|
||||
if type(value) == list:
|
||||
for t in value:
|
||||
utils.is_audio(t,force=force)
|
||||
utils.is_audio(t,force=force)
|
||||
|
||||
def clean_is_audio_memmos(self):
|
||||
"Clean out memmos for is_audio"
|
||||
for key,value in self.db.items():
|
||||
if type(value) == list:
|
||||
for i in value:
|
||||
if 'is_audio' in i:
|
||||
del i['is_audio']
|
Loading…
Reference in New Issue
Block a user