chore: changed warning message when deleting saved state

This commit is contained in:
lantzelot-swe 2021-11-20 23:44:21 +01:00
parent 7f67e09f75
commit b472d0e97a
1 changed files with 6 additions and 5 deletions

View File

@ -334,7 +334,7 @@ public class SaveStatePanel extends JPanel
} }
return image; return image;
} }
private ImageIcon getNoScreenshotImageIcon() private ImageIcon getNoScreenshotImageIcon()
{ {
if (noSceenshotIcon == null) if (noSceenshotIcon == null)
@ -826,10 +826,11 @@ public class SaveStatePanel extends JPanel
{ {
public void actionPerformed(ActionEvent e) public void actionPerformed(ActionEvent e)
{ {
int value = JOptionPane.showConfirmDialog(SaveStatePanel.this, int value = JOptionPane
"Are you sure you want to delete the saved state?", .showConfirmDialog(SaveStatePanel.this,
"Delete saved state", "Are you sure you want to delete the saved state?\nIt will be deleted when you save the changes for the current game.",
JOptionPane.YES_NO_OPTION); "Delete saved state",
JOptionPane.YES_NO_OPTION);
if (value == JOptionPane.YES_OPTION) if (value == JOptionPane.YES_OPTION)
{ {
gamesFileUpdated = false; gamesFileUpdated = false;