ENH:Leave the lifecycle of the window to wxwidget management

jira: none
Change-Id: Ie059192eedd755524d8f010b73849bf2e70476cd
(cherry picked from commit fc476f115daabe9aaa175cb87f3d506d9b9e1f84)
This commit is contained in:
zhou.xu
2025-03-25 10:13:48 +08:00
committed by Noisyfox
parent aa430e1c2b
commit 0dfba478df
2 changed files with 6 additions and 6 deletions

View File

@@ -130,13 +130,13 @@ class Sidebar : public wxPanel
Button * btn_sync{nullptr};
ScalableButton * ams_btn{nullptr};
bool m_last_slice_state = false;
std::shared_ptr<SyncNozzleAndAmsDialog> m_sna_dialog{nullptr};
std::shared_ptr<FinishSyncAmsDialog> m_fna_dialog{nullptr};
SyncNozzleAndAmsDialog* m_sna_dialog{nullptr};
FinishSyncAmsDialog* m_fna_dialog{nullptr};
std::vector<BedType> m_cur_combox_bed_types;
std::string m_cur_image_bed_type;
int m_last_combo_bedtype_count{0};
bool m_begin_sync_printer_status{false};
std::shared_ptr<SyncAmsInfoDialog> m_sync_dlg{nullptr};
SyncAmsInfoDialog* m_sync_dlg{nullptr};
void update_sync_ams_btn_enable(wxUpdateUIEvent &e);