Fix: Only call wxEndBusyCursor when is busy

Change-Id: I8a6085aca652df4892bf5182e34d01c423a17bd6
This commit is contained in:
tao wang 2022-08-31 12:43:30 +08:00 committed by Lane.Wei
parent dbe414c38c
commit 5cedfe2216
1 changed files with 4 additions and 1 deletions

View File

@ -1066,7 +1066,10 @@ void SelectMachineDialog::prepare_mode()
if (m_print_job) {
m_print_job->join();
}
wxEndBusyCursor();
if (wxIsBusy())
wxEndBusyCursor();
Enable_Send_Button(true);
m_status_bar->reset();