设置界面启动扫描,无图失败后,增加调用notifyCloseCancel以通知APP更改当前状态。for BUG-808 and BUG-811

This commit is contained in:
gb 2023-12-05 10:41:34 +08:00
parent 24d05a6441
commit dbb9c2d778
1 changed files with 3 additions and 2 deletions

View File

@ -3904,7 +3904,8 @@ int huagao_ds::handle_scanner_event(int ev, bool from_event_proc)
load_sane_util::log_info(msg, 1); load_sane_util::log_info(msg, 1);
scanner_status_ = SCANNER_STATUS_STOPPED; scanner_status_ = SCANNER_STATUS_STOPPED;
if(bUiOnly_)
// start from UI, start faile should notifyCloseCancel to complete this turn: BUG-808
rc = notifyCloseCancel(); rc = notifyCloseCancel();
if (Twpp::success(rc)) if (Twpp::success(rc))
{ {