mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-11-27 07:44:02 +08:00
fix
This commit is contained in:
parent
1fdcbb1535
commit
748f67fef5
@ -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));
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user