JOSM_easypresets icon indicating copy to clipboard operation
JOSM_easypresets copied to clipboard

Presets in the toolbar are disabled

Open maripo opened this issue 4 years ago • 1 comments

Custom presets can be shown in the toolbar by toolbar preferences. However these icons are grayed out and disabled. They should be available when the first data layer is loaded. (Normal presets are grayed out at startup of JOSM and turn enabled after the first layer is downloaded.)

custom_presets_are_grayed_out

Custom presets become available if the code below is called at the right time, but I am struggling to find out which timing is appropriate.

MainApplication.getToolbar().refreshToolbarControl();

Can someone help me?

maripo avatar Nov 21 '20 15:11 maripo

related to https://josm.openstreetmap.de/ticket/20380

hubaishan avatar Mar 29 '21 09:03 hubaishan