#783 No OK box when edited script or text was saved (show messages only if it was't saved or with errors)

This commit is contained in:
honfika@gmail.com
2015-02-01 20:47:28 +01:00
parent ad7148f539
commit 63c6edf0fb
6 changed files with 26 additions and 4 deletions

View File

@@ -785,7 +785,7 @@ public class ActionPanel extends JPanel implements ActionListener, SearchListene
}
src.setModified();
setSource(this.src, false);
View.showMessageDialog(this, AppStrings.translate("message.action.saved"));
View.showMessageDialog(this, AppStrings.translate("message.action.saved"), AppStrings.translate("dialog.message.title"), JOptionPane.INFORMATION_MESSAGE, Configuration.showCodeSavedMessage);
saveButton.setVisible(false);
cancelButton.setVisible(false);
editButton.setVisible(true);
@@ -813,7 +813,7 @@ public class ActionPanel extends JPanel implements ActionListener, SearchListene
src.setModified();
setSource(src, false);
View.showMessageDialog(this, AppStrings.translate("message.action.saved"));
View.showMessageDialog(this, AppStrings.translate("message.action.saved"), AppStrings.translate("dialog.message.title"), JOptionPane.INFORMATION_MESSAGE, Configuration.showCodeSavedMessage);
setDecompiledEditMode(false);
} catch (IOException ex) {
Logger.getLogger(ActionPanel.class.getName()).log(Level.SEVERE, "IOException during action compiling", ex);