How the code should look
when the button is pressed, the group mode is turned on when pressed again, it turns off
drop-down menu
pressing the button turns on mixed mode when pressing the button again turns off
How the code should look
when the button is pressed, the group mode is turned on when pressed again, it turns off
drop-down menu
pressing the button turns on mixed mode when pressing the button again turns off
When I choose the drop-down, the button is disabled forcing me to pick a selection from the drop-down menu - which is how it should work IMHO
Like so?
<?xml version="1.0"?>
<button backcol="none" display="both" label_pos="right" textcol="none" type="menu_button">
<label>Toggle FLATVIEW grouped</label>
<icon1>#flatviewgrouped</icon1>
<function type="normal">
<instruction>@if:Set FLATVIEW=on</instruction>
<instruction>Set FLATVIEW=off</instruction>
<instruction />
<instruction>@if:else</instruction>
<instruction>Set FLATVIEW=on,grouped</instruction>
</function>
<button backcol="none" display="both" label_pos="right" textcol="none">
<label>Toggle FLATVIEW mixed</label>
<icon1>#flatviewmixed</icon1>
<function type="normal">
<instruction>@if:Set FLATVIEW=on</instruction>
<instruction>Set FLATVIEW=off</instruction>
<instruction />
<instruction>@if:else</instruction>
<instruction>Set FLATVIEW=on,mixed</instruction>
</function>
</button>
</button>
That's what you need, thanks