Skip to content

Commit

Permalink
fix #430: set unused button invisible
Browse files Browse the repository at this point in the history
Previously that button was just not layouted in the container widget,
but it was actually usable. Now set the widget to invisible, thereby
removing it from the tab key cycling and from the button click listener.
  • Loading branch information
Bananeweizen authored and Calixte committed Sep 16, 2023
1 parent d378abf commit 33e56f7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,9 @@ private Control createButtonBar(Composite parent) {
formData.right = new FormAttachment(100);
mDefaultButton.setLayoutData(formData);
}
else {
mDefaultButton.setVisible(false);
}

mExportButton = new Button(rightButtons, SWT.PUSH);
mExportButton.setText(Messages.CheckstylePreferencePage_btnExport);
Expand Down

0 comments on commit 33e56f7

Please sign in to comment.