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

Fix enum tags #87

Merged
merged 1 commit into from
Dec 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions tool/src/main/java/apdu4j/tool/FancyChooser.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ synchronized public void readerListChanged(List<PCSCReader> readers) {
MessageDialog warn = new MessageDialogBuilder()
.setTitle(" Warning! ")
.setText("Reader is in exclusive use by some other application")
.addButton(MessageDialogButton.Cancel)
.addButton(MessageDialogButton.Continue)
.addButton(MessageDialogButton.CANCEL)
.addButton(MessageDialogButton.CONTINUE)
.build();
warn.setCloseWindowWithEscape(true);
MessageDialogButton d = warn.showDialog(gui);
if (d == null || d == MessageDialogButton.Cancel) {
if (d == null || d == MessageDialogButton.CANCEL) {
return;
}
// Fall through if clause and set chosen one.
Expand Down Expand Up @@ -252,9 +252,9 @@ private FancyChooser(Terminal terminal, Screen screen, TerminalManager manager,
// Empty line between quit button
mainPanel.addComponent(new EmptySpace(new TerminalSize(0, 1)));
quitButton = new Button("Cancel and quit", () -> mainWindow.close());
quitButton.setLayoutData(LinearLayout.createLayoutData(LinearLayout.Alignment.End));
quitButton.setLayoutData(LinearLayout.createLayoutData(LinearLayout.Alignment.END));
mainPanel.addComponent(quitButton);
//mainPanel.setLayoutData(LinearLayout.createLayoutData(LinearLayout.Alignment.End));
//mainPanel.setLayoutData(LinearLayout.createLayoutData(LinearLayout.Alignment.END));
mainWindow.setComponent(mainPanel);
}

Expand Down
Loading