mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-26 04:12:07 +00:00
Fix crash after syncing printer (#11428)
Fix crash after syncing printer (OrcaSlicer/OrcaSlicer#11427)
This commit is contained in:
@@ -3235,8 +3235,8 @@ void Sidebar::on_full_screen(IntEvent &e) {
|
|||||||
|
|
||||||
void Sidebar::get_big_btn_sync_pos_size(wxPoint &pt, wxSize &size)
|
void Sidebar::get_big_btn_sync_pos_size(wxPoint &pt, wxSize &size)
|
||||||
{
|
{
|
||||||
size =btn_sync->GetSize();
|
size = p->m_printer_bbl_sync->GetSize();
|
||||||
pt = btn_sync->GetScreenPosition();
|
pt = p->m_printer_bbl_sync->GetScreenPosition();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Sidebar::get_small_btn_sync_pos_size(wxPoint &pt, wxSize &size) {
|
void Sidebar::get_small_btn_sync_pos_size(wxPoint &pt, wxSize &size) {
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ public:
|
|||||||
class Sidebar : public wxPanel
|
class Sidebar : public wxPanel
|
||||||
{
|
{
|
||||||
ConfigOptionMode m_mode;
|
ConfigOptionMode m_mode;
|
||||||
Button * btn_sync{nullptr};
|
//Button * btn_sync{nullptr};
|
||||||
ScalableButton * ams_btn{nullptr};
|
ScalableButton * ams_btn{nullptr};
|
||||||
bool m_last_slice_state = false;
|
bool m_last_slice_state = false;
|
||||||
SyncNozzleAndAmsDialog* m_sna_dialog{nullptr};
|
SyncNozzleAndAmsDialog* m_sna_dialog{nullptr};
|
||||||
|
|||||||
Reference in New Issue
Block a user