diff --git a/src/GUI/Plater.cpp b/src/GUI/Plater.cpp index a85af6bd5..839394fe1 100644 --- a/src/GUI/Plater.cpp +++ b/src/GUI/Plater.cpp @@ -568,6 +568,8 @@ void Plater::build_toolbar() { toolbar->AddTool(TB_SETTINGS, _(L"Settings…"), wxBitmap(var("cog.png"), wxBITMAP_TYPE_PNG)); toolbar->AddTool(TB_LAYERS, _(L"Layer heights…"), wxBitmap(var("variable_layer_height.png"), wxBITMAP_TYPE_PNG)); + toolbar->Realize(); + toolbar->Bind(wxEVT_TOOL, [this](wxCommandEvent &e) { this->add(); }, TB_ADD); toolbar->Bind(wxEVT_TOOL, [this](wxCommandEvent &e) { this->remove(); }, TB_REMOVE);