This commit is contained in:
yangjiaxuan 2023-05-18 17:41:20 +08:00
parent 02e9a1b5ec
commit 183b20afe0
1 changed files with 2 additions and 6 deletions

View File

@ -610,11 +610,6 @@ HGResult HGTwainDSImpl::Enable(HGBool showUI, HWND parent, HGDSCloseReqFunc even
return HGTWAIN_ERR_FAIL;
}
if (!showUI)
{
HGBase_SetEvent(m_event);
}
m_showUI = showUI;
m_parent = parent;
m_eventFunc = eventFunc;
@ -993,6 +988,7 @@ void HGAPI HGTwainDSImpl::ThreadFunc(HGThread thread, HGPointer param)
}
}
if (!p->m_showUI)
p->Disable();
}
}