Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5bd9238

Browse files
committedMar 7, 2025·
1263: Use this as the parent component for error dialogs
Previously, null was passed as the parent component, which could cause dialog positioning issues. Using `this` ensures the dialog is properly tied to the current window. This improves the user interface consistency and behavior.
1 parent 82af1b2 commit 5bd9238

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/main/java/com/magento/idea/magento2plugin/actions/generation/dialog/AbstractDialog.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ protected void showErrorMessage(final String errorMessage) {
218218
return;
219219
}
220220
JOptionPane.showMessageDialog(
221-
null,
221+
this,
222222
errorMessage,
223223
errorTitle,
224224
JOptionPane.ERROR_MESSAGE

0 commit comments

Comments
 (0)
Please sign in to comment.