Fix click toggle in setting_name and setting_description.

This commit is contained in:
Martín Lucas Golini
2026-08-25 00:35:18 -03:00
parent 43dec0ffb5
commit 7b5188dd67
+4
View File
@@ -546,6 +546,10 @@ UICheckBox* SettingsPanel::createBoolControl( PanelState& panel, SettingBinding&
row->addClass( "settings_boolean_option" );
auto* check = row->find<UICheckBox>( "setting_control_widget" );
auto toggle = [check]( const Event* ) { check->setChecked( !check->isChecked() ); };
panel.connections +=
row->find<UITextView>( "setting_name" )->connect( Event::MouseClick, toggle );
panel.connections +=
row->find<UITextView>( "setting_description" )->connect( Event::MouseClick, toggle );
panel.connections += row->find<UILinearLayout>( "setting_info" )
->connect( Event::MouseClick, std::move( toggle ) );
return check;