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

Enable import button only if entry selected #4755

Closed
tobiasdiez opened this issue Mar 12, 2019 · 2 comments
Closed

Enable import button only if entry selected #4755

tobiasdiez opened this issue Mar 12, 2019 · 2 comments

Comments

@tobiasdiez
Copy link
Member

The import button in the import dialog should only be enabled if at least one entry is selected.

Moreover, if this dialog is triggered by an import action all entries should be selected by default. (If triggered by a websearch then no entries should be selected by default as it is right now.)

@samiyac
Copy link
Contributor

samiyac commented Mar 12, 2019

I would like to work on this issue.

@tobiasdiez
Copy link
Member Author

@samiyac Glad to hear!
You should be able to get the button via (Button) this.getDialogPane().lookupButton(...);. Then it is probably enough to bind the disableProperty to the emptyProperty of the list of checked items.

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