Disambiguate state_handler.attach() call in Button.cpp

This commit is contained in:
SoftFever
2026-03-25 11:35:25 +08:00
parent 2b3328c2b2
commit 11a80a1e1c

View File

@@ -48,7 +48,7 @@ Button::Button(wxWindow* parent, wxString text, wxString icon, long style, int i
bool Button::Create(wxWindow* parent, wxString text, wxString icon, long style, int iconSize, wxWindowID btn_id)
{
StaticBox::Create(parent, btn_id, wxDefaultPosition, wxDefaultSize, style);
state_handler.attach({&text_color});
state_handler.attach(std::vector<StateColor const*>{&text_color});
state_handler.update_binds();
//BBS set default font
SetFont(Label::Body_14);