FIX:fixed the task of padding cannot be cancelled

Change-Id: I401a22118c14ca7601be7a925cfd8e4796dfc1e9
This commit is contained in:
tao wang 2024-04-20 14:35:20 +08:00 committed by Lane.Wei
parent 15b3fb3a54
commit 984f88979f

View File

@ -256,7 +256,7 @@ void MultiTaskItem::OnLeftDown(wxMouseEvent& evt)
mouse_pos.y > item.y && mouse_pos.y > item.y &&
mouse_pos.y < (item.y + DEVICE_ITEM_MAX_HEIGHT)) { mouse_pos.y < (item.y + DEVICE_ITEM_MAX_HEIGHT)) {
if (m_task_type == 0 && state_local_task == 1) { if (m_task_type == 0 && state_local_task <= 1) {
post_event(wxCommandEvent(EVT_MULTI_DEVICE_SELECTED)); post_event(wxCommandEvent(EVT_MULTI_DEVICE_SELECTED));
} }
else if (m_task_type == 1 && state_cloud_task == 0) { else if (m_task_type == 1 && state_cloud_task == 0) {