Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Presets in the toolbar are disabled #53

Open
maripo opened this issue Nov 21, 2020 · 1 comment
Open

Presets in the toolbar are disabled #53

maripo opened this issue Nov 21, 2020 · 1 comment

Comments

@maripo
Copy link
Owner

maripo commented Nov 21, 2020

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
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants