mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
ENH:optimize the logic of the IP input window
jira:[STUDIO-10375 STUDIO-10534] Change-Id: I75ff12403dbf8f59fa95c938fa97ec2497f0ed67 (cherry picked from commit b62efed65f26b1ea4390c2d1e8681169e63fff99)
This commit is contained in:
@@ -59,9 +59,7 @@ BBLStatusBarSend::BBLStatusBarSend(wxWindow *parent, int id)
|
||||
m_cancelbutton->SetCornerRadius(m_self->FromDIP(12));
|
||||
m_cancelbutton->Bind(wxEVT_BUTTON,
|
||||
[this](wxCommandEvent &evt) {
|
||||
m_was_cancelled = true;
|
||||
if (m_cancel_cb_fina)
|
||||
m_cancel_cb_fina();
|
||||
cancel();
|
||||
});
|
||||
|
||||
m_stext_percent = new wxStaticText(m_self, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, 0);
|
||||
@@ -387,4 +385,10 @@ void BBLStatusBarSend::enable_cancel_button()
|
||||
m_cancelbutton->Enable();
|
||||
}
|
||||
|
||||
void BBLStatusBarSend::cancel()
|
||||
{
|
||||
m_was_cancelled = true;
|
||||
if (m_cancel_cb_fina) m_cancel_cb_fina();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user