From 0adcabef93e8a84b997c154451ff921cd1b74c79 Mon Sep 17 00:00:00 2001 From: lantzelot-swe <75668734+lantzelot-swe@users.noreply.github.com> Date: Sat, 3 Feb 2024 09:43:20 +0100 Subject: [PATCH] fix: dialog title --- .../gui/screenshot/cover/EditCoverDialog.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/java/se/lantz/gui/screenshot/cover/EditCoverDialog.java b/src/main/java/se/lantz/gui/screenshot/cover/EditCoverDialog.java index d5cfcd5..bad85f6 100644 --- a/src/main/java/se/lantz/gui/screenshot/cover/EditCoverDialog.java +++ b/src/main/java/se/lantz/gui/screenshot/cover/EditCoverDialog.java @@ -10,27 +10,27 @@ import se.lantz.gui.MainWindow; public class EditCoverDialog extends BaseDialog { - private EditCoverPanel editScreenPanel; + private EditCoverPanel editCoverPanel; - public EditCoverDialog(BufferedImage originalScreen) + public EditCoverDialog(BufferedImage originalCover) { super(MainWindow.getInstance()); - setTitle("Edit screenshot"); + setTitle("Edit cover image"); JPanel content = new JPanel(); content.setLayout(new BorderLayout()); - content.add(getEditScreenshotPanel(), BorderLayout.CENTER); + content.add(getEditCoverPanel(), BorderLayout.CENTER); addContent(content); - getEditScreenshotPanel().setImage(originalScreen); + getEditCoverPanel().setImage(originalCover); this.setResizable(false); } - private EditCoverPanel getEditScreenshotPanel() + private EditCoverPanel getEditCoverPanel() { - if (editScreenPanel == null) + if (editCoverPanel == null) { - editScreenPanel = new EditCoverPanel(); + editCoverPanel = new EditCoverPanel(); } - return editScreenPanel; + return editCoverPanel; } @Override @@ -41,6 +41,6 @@ public class EditCoverDialog extends BaseDialog public BufferedImage getEditedImage() { - return getEditScreenshotPanel().getCroppedImage(); + return getEditCoverPanel().getCroppedImage(); } }