forked from Public-Mirror/Textractor
no need for filter
This commit is contained in:
parent
7304727c17
commit
ec1bd5622e
@ -37,7 +37,6 @@ void TextThread::Flush()
|
||||
|
||||
void TextThread::AddSentence(std::wstring sentence)
|
||||
{
|
||||
sentence = std::regex_replace(sentence, std::wregex(filter), L"");
|
||||
// Dispatch to extensions occurs here. Don't hold mutex! Extensions might take a while!
|
||||
if (Output(this, sentence))
|
||||
{
|
||||
|
@ -14,7 +14,6 @@ public:
|
||||
|
||||
inline static OutputCallback Output;
|
||||
|
||||
inline static std::wstring filter = L"";
|
||||
inline static int flushDelay = 250; // flush every 250ms by default
|
||||
inline static int maxBufferSize = 200;
|
||||
inline static int threadCounter = 0;
|
||||
|
@ -15,7 +15,6 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
// TODO: add GUI for changing these
|
||||
if (settings.contains("Flush_Delay")) TextThread::flushDelay = settings.value("Flush_Delay").toInt();
|
||||
if (settings.contains("Max_Buffer_Size")) TextThread::maxBufferSize = settings.value("Max_Buffer_Size").toInt();
|
||||
if (settings.contains("Filter")) TextThread::filter = settings.value("Filter").toString().toStdWString();
|
||||
|
||||
processCombo = findChild<QComboBox*>("processCombo");
|
||||
ttCombo = findChild<QComboBox*>("ttCombo");
|
||||
@ -44,7 +43,6 @@ MainWindow::~MainWindow()
|
||||
settings.setValue("Window", this->geometry());
|
||||
settings.setValue("Flush_Delay", TextThread::flushDelay);
|
||||
settings.setValue("Max_Buffer_Size", TextThread::maxBufferSize);
|
||||
settings.setValue("Filter", QString::fromStdWString(TextThread::filter));
|
||||
settings.sync();
|
||||
Host::Close();
|
||||
delete ui;
|
||||
|
Loading…
x
Reference in New Issue
Block a user