Hallo @Andreas_Hegenberg ,
some of my Floating menus on the Mac are not displayed anymore...
I updated from 5.309 to 5.313 when the issues appear...
Describe the bug
Action: the Show Floating menu action does not workdisplay anymore for some menus (not sure why)
Preview section is missing on the "Floating menu" definition, see screen
Screenshots
Device information:
- BetterTouchTool version: 5.312 .. 5.313
I removed the preview image intentionally because it sometimes confused me and wasn't very accurate. Does your menu still not show in 5.415?
version 5.317:
I found the 'issue'. those few floating menus which did not load had a script enabled.
Toggling "Script enabled" off/on works until the next BTT restart.
Maybe my stript is not properly defined, the aim is to init the variable for one of the buttons visibility...(true/false).
(async ()=> {
let result1 = await set_string_variable({variable_name: 'toggle', to: 'true'});
let result = await set_string_variable({variable_name: 'button_state', to: 'true'});
returnToBTT(result);
})();
other observation:
the icon "resize to fit" option did slightly changed...
Ah true, these scripts are expected to return a dictionary (to update the menu) or an array (to define its items). However 5.419 should allow your kind of script again as well.
For the resizing, I noticed that the "resize to fit" option didn't actually resize to fit but instead to some arbitrary size. However you are right, I shouldn't break the old behavior. 5.420 should bring back the old behavior for existing items.
5.421 adds a padding option, which I think is useful with the new resize to fit behavior:
I though already that my script was not returning the expected values, but as it is now in 5.319 it can be used for 'other' purposes as well - it much more flexible now...
Thx,
Christian