I want to file this as a bug and hope that you agree.
Paste the CTB snippet into a CTB.
The right click context menu should show an icon on the left side of the first entry, but it only shows a "?" icon.
That the aliases are recognized, you can see, e.g., if you delete the pipe character. Besides, the normal text of the caption is dynamic. This part works well. So, the icon should work too, right? But doesn't.
I also tried putting the pipe and colon both into the caption directly or both into the alias. Or the whole string into one alias instead of two. Nothing makes the icon show up.
If I type ":dark" or ":sync" into the first line of "ScriptR" after the pipe directly, then it works: The icon is displayed.
Code: Select all
Snip: CTB 1
XYplorer 22.30.0204, 23.10.2021 01:00:18
Action
NewUserButton
Name
Icon
ScriptL
ScriptR
"<@autocart_label_ToggleLocationCEAs>|<@autocart_label_ToggleLocationCEAs_Icon>"
if (tweak("SkipBrowseEvents") == 1) {
tweak("SkipBrowseEvents", 0);
} else {
tweak("SkipBrowseEvents", 1);
}
"_Initialize"
if (tweak("SkipBrowseEvents")==1) {
goto "@autocart_label_ToggleLocationCEAs=[Location CEAs are OFF]: Activate";
goto "@autocart_label_ToggleLocationCEAs_Icon=:dark";
} else {
goto "@autocart_label_ToggleLocationCEAs=[Location CEAs are ON]: Deactivate";
goto "@autocart_label_ToggleLocationCEAs_Icon=:sync";
}
FireClick
0