mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Don't show help button if there is no help available
This commit is contained in:
@@ -1080,7 +1080,11 @@ public abstract class DialogWrapper {
|
||||
*/
|
||||
@NotNull
|
||||
protected Action[] createActions() {
|
||||
return new Action[]{getOKAction(), getCancelAction(), getHelpAction()};
|
||||
Action helpAction = getHelpAction();
|
||||
|
||||
return helpAction == myHelpAction && getHelpId() == null
|
||||
? new Action[]{getOKAction(), getCancelAction()}
|
||||
: new Action[]{getOKAction(), getCancelAction(), helpAction};
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user