Update extrawindow.cpp

Update extrawindow.cpp
This commit is contained in:
恍兮惚兮 2024-04-21 18:53:37 +08:00
parent 6e75af65af
commit 7d968b2f18

View File

@ -595,12 +595,10 @@ private:
int definitionIndex;
} dictionaryWindow;
} extraWindow;
#include<stdio.h>
bool ProcessSentence(std::wstring& sentence, SentenceInfo sentenceInfo)
{
wprintf(L"enter %s\n",sentence.c_str());
if (sentenceInfo["current select"] && sentenceInfo["text number"] != 0)
QMetaObject::invokeMethod(&extraWindow, [sentence = S(sentence)] { extraWindow.AddSentence(sentence); });
wprintf(L"leave %s\n",sentence.c_str());
return false;
}
}