You keep mentioning list items, yet the dialog code you show (in your last post) shows menu items only,

These are two different items.

In your earlier dialog code you have a couple of list boxes, which, as I stated, can have the check parameter, allowing you to use the items in the list box as a checked/unchecked item.

To my knowledge, dialog menus cannot have marks indicating Enabled/disabled, unlike right-click menus, where you can use different $style options.

If you don't care about the visual aspect, then you might try something like
Code:
on *:dialog:control:sclick:5:{
  $iif($group(#tunes) == on,.disable,.enable) #tunes
}