xricht17 / twpp

TWAIN framework for C++11. Makes development of applications and data sources much easier.
MIT License
39 stars 17 forks source link

Call Source.enable() with showUI = false don't set m_readyMsg to Msg::XferReady #25

Closed craxycat closed 4 years ago

craxycat commented 4 years ago

When call src.enable(UserInterface(false, false, Handle())); // showUI = false callback don't set m_readyMsg to Msg::XferReady, because checking m_state == DsState::Enabled before m_state setted to this state. Line 860 in application.hpp:

if (src->m_state == DsState::Enabled){
            src->m_readyMsg = msg;
xricht17 commented 4 years ago

Hi craxycat,

Thanks for the issue report! Let me see what I can do about it.

xricht17 commented 4 years ago

It should be fixed now. Could you test it on your end?

craxycat commented 4 years ago

Yes, it's fixed now. Thank you!