This commit is contained in:
恍兮惚兮 2024-04-25 11:37:40 +08:00
parent 1fdcbb1535
commit 748f67fef5
2 changed files with 2 additions and 2 deletions

View File

@ -36,12 +36,12 @@ bool sendclipboarddata(const std::wstring&text,HWND hwnd){
return false;
}
void LunaHost::on_close(){
hasstoped=true;
savesettings();
delete configs;
for(auto pid:attachedprocess){
Host::DetachProcess(pid);
}
hasstoped=true;
if(attachedprocess.size())
std::this_thread::sleep_for(std::chrono::milliseconds(100));
}

View File

@ -96,7 +96,7 @@ class LunaHost:public mainwindow{
Settingwindow *settingwindow=0;
Pluginmanager* plugins;
Hooksearchwindow * hooksearchwindow=0;
bool hasstoped=false;
std::atomic<bool> hasstoped=false;
bool on_text_recv(TextThread& thread, std::wstring& sentence);
void on_text_recv_checkissaved(TextThread& thread);
void on_thread_create(TextThread& thread);