mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-05 13:10:43 +08:00
FIX: cannot click AmsMapping
Change-Id: Ie6e908ee263d2c072520cdc8d8228f740646c995
This commit is contained in:
parent
420fae9bbf
commit
db3acf7d72
@ -45,13 +45,7 @@ wxDEFINE_EVENT(EVT_SET_FINISH_MAPPING, wxCommandEvent);
|
||||
SetMaxSize(MATERIAL_ITEM_SIZE);
|
||||
SetBackgroundColour(*wxWHITE);
|
||||
|
||||
m_main_panel = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL);
|
||||
auto main_sizer = new wxBoxSizer(wxVERTICAL);
|
||||
main_sizer->Add(m_main_panel, 1, wxEXPAND);
|
||||
this->SetSizer(main_sizer);
|
||||
this->Layout();
|
||||
|
||||
m_main_panel->Bind(wxEVT_PAINT, &MaterialItem::paintEvent, this);
|
||||
Bind(wxEVT_PAINT, &MaterialItem::paintEvent, this);
|
||||
wxGetApp().UpdateDarkUI(this);
|
||||
}
|
||||
|
||||
@ -95,7 +89,7 @@ void MaterialItem::on_normal()
|
||||
|
||||
void MaterialItem::paintEvent(wxPaintEvent &evt)
|
||||
{
|
||||
wxPaintDC dc(m_main_panel);
|
||||
wxPaintDC dc(this);
|
||||
render(dc);
|
||||
|
||||
//PrepareDC(buffdc);
|
||||
|
Loading…
x
Reference in New Issue
Block a user