Fix: Only call wxEndBusyCursor when is busy

Change-Id: I8a6085aca652df4892bf5182e34d01c423a17bd6
This commit is contained in:
tao wang authored and Lane.Wei committed 2022-09-02 13:16:54 +08:00
1 parent dbe414c38c
commit 5cedfe2216
1 file changed
+4 -1
+4 -1
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();