move display logic to gui

This commit is contained in:
Akash Mozumdar 2018-08-07 12:50:31 -04:00
parent 4b70c62d64
commit 143a2f091f
2 changed files with 1 additions and 1 deletions

View File

@ -112,6 +112,7 @@ void MainWindow::AddThread(TextThread* thread)
thread->RegisterOutputCallBack([&](TextThread* thread, std::wstring output)
{
output = DispatchSentenceToExtensions(output, GetInfoForExtensions(thread));
output += L"\r\n";
emit ThreadOutputReceived(thread, QString::fromWCharArray(output.c_str()));
return output;
});

View File

@ -72,7 +72,6 @@ void TextThread::AddSentence()
void TextThread::AddSentence(std::wstring sentence)
{
TT_LOCK;
sentence.append(L"\r\n");
if (output) sentence = output(this, sentence);
storage.append(sentence);
}