mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-10-01 18:50:16 +03:00
Fix click toggle in setting_name and setting_description.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user