Skip to content

Commit

Permalink
EditActionsDialog: fixed titlebar icon not being present when initial…
Browse files Browse the repository at this point in the history
…ized as cycle action editor
  • Loading branch information
bwRavencl committed Oct 12, 2023
1 parent cd11b7f commit ade2970
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import de.bwravencl.controllerbuddy.input.action.annotation.ActionProperty;
import io.github.classgraph.ClassGraph;
import java.awt.BorderLayout;
import java.awt.Dialog;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridBagConstraints;
Expand Down Expand Up @@ -132,8 +133,9 @@ public final class EditActionsDialog extends JDialog {

@SuppressWarnings("unchecked")
public EditActionsDialog(
@SuppressWarnings("exports") final java.awt.Component parentComponent,
@SuppressWarnings("exports") final Dialog parentDialog,
@SuppressWarnings("exports") final ButtonToCycleAction cycleAction) {
super(parentDialog);
this.cycleAction = cycleAction;

try {
Expand All @@ -144,7 +146,7 @@ public EditActionsDialog(
throw new RuntimeException(e);
}

preInit(parentComponent);
preInit(parentDialog);
setTitle(MessageFormat.format(
Main.strings.getString("EDIT_ACTIONS_DIALOG_TITLE_CYCLE_ACTION_EDITOR"),
IAction.getLabel(cycleAction.getClass())));
Expand Down

0 comments on commit ade2970

Please sign in to comment.