Skip to content

Commit

Permalink
move display logic to gui
Browse files Browse the repository at this point in the history
  • Loading branch information
Artikash committed Aug 7, 2018
1 parent 4b70c62 commit 143a2f0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions GUI/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down
1 change: 0 additions & 1 deletion host/textthread.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 143a2f0

Please sign in to comment.