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 #11799: Resolved file renaming dialog issue and made it resizable #12518

Merged
merged 3 commits into from
Feb 19, 2025
Merged
Changes from 1 commit
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
2 changes: 2 additions & 0 deletions src/main/java/org/jabref/gui/JabRefDialogService.java
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ public Optional<String> showInputDialogWithDefaultAndWait(String title, String c
inputDialog.setHeaderText(title);
inputDialog.setContentText(content);
inputDialog.initOwner(mainWindow);
inputDialog.getDialogPane().setPrefSize(500, 200); // Set preferred size
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment seems to be AI-generated and does not add any value (because the method name already says htat)

Suggested change
inputDialog.getDialogPane().setPrefSize(500, 200); // Set preferred size
inputDialog.getDialogPane().setPrefSize(500, 200);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Initially, I added it for my understanding and to pinpoint the correct part of the code. I have now removed it!

inputDialog.setResizable(true);
return inputDialog.showAndWait();
}

Expand Down
Loading