maripo / JOSM_easypresets

22 stars 7 forks source link

Presets in the toolbar are disabled #53

Open maripo opened 3 years ago

maripo commented 3 years ago

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?

hubaishan commented 3 years ago

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