mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
FirmwareDialog: Attempt to fix window double close assertion #2619
This commit is contained in:
parent
21cc859357
commit
f747b97564
1 changed files with 1 additions and 2 deletions
|
@ -866,7 +866,7 @@ FirmwareDialog::FirmwareDialog(wxWindow *parent) :
|
||||||
SetSize(std::max(size.GetWidth(), static_cast<int>(p->min_width)), std::max(size.GetHeight(), static_cast<int>(p->min_height)));
|
SetSize(std::max(size.GetWidth(), static_cast<int>(p->min_width)), std::max(size.GetHeight(), static_cast<int>(p->min_height)));
|
||||||
Layout();
|
Layout();
|
||||||
|
|
||||||
SetEscapeId(wxID_CLOSE); // To close the dialog using "Esc" button
|
SetEscapeId(wxID_CLOSE); // To close the dialog using "Esc" button
|
||||||
|
|
||||||
// Bind events
|
// Bind events
|
||||||
|
|
||||||
|
@ -893,7 +893,6 @@ FirmwareDialog::FirmwareDialog(wxWindow *parent) :
|
||||||
this->p->fit_no_shrink();
|
this->p->fit_no_shrink();
|
||||||
});
|
});
|
||||||
|
|
||||||
p->btn_close->Bind(wxEVT_BUTTON, [this](wxCommandEvent &) { this->Close(); });
|
|
||||||
p->btn_rescan->Bind(wxEVT_BUTTON, [this](wxCommandEvent &) { this->p->find_serial_ports(); });
|
p->btn_rescan->Bind(wxEVT_BUTTON, [this](wxCommandEvent &) { this->p->find_serial_ports(); });
|
||||||
|
|
||||||
p->btn_flash->Bind(wxEVT_BUTTON, [this](wxCommandEvent &) {
|
p->btn_flash->Bind(wxEVT_BUTTON, [this](wxCommandEvent &) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue