Abc cleaner warning dialog has warning icon.

This commit is contained in:
Jindra Petřík
2025-07-27 23:07:58 +02:00
parent 2972e5fcbb
commit 19a536e831
2 changed files with 2 additions and 2 deletions

View File

@@ -2659,7 +2659,7 @@ public class ABCExplorerDialog extends AppDialog {
private void cleanActionPerformed(ActionEvent e) {
ABC abc = getSelectedAbc();
if (abc != null) {
if (ViewMessages.showConfirmDialog(this, AppStrings.translate("warning.cleanAbc"), AppStrings.translate("message.warning"), JOptionPane.OK_CANCEL_OPTION, Configuration.warningAbcClean, JOptionPane.OK_OPTION) != JOptionPane.OK_OPTION) {
if (ViewMessages.showConfirmDialog(this, AppStrings.translate("warning.cleanAbc"), AppStrings.translate("message.warning"), JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE, Configuration.warningAbcClean, JOptionPane.OK_OPTION) != JOptionPane.OK_OPTION) {
return;
}
int mainIndex = mainTabbedPane.getSelectedIndex();

View File

@@ -2947,7 +2947,7 @@ public class TagTreeContextMenu extends JPopupMenu {
if (item == null) {
return;
}
if (ViewMessages.showConfirmDialog(this, AppStrings.translate("warning.cleanAbc"), AppStrings.translate("message.warning"), JOptionPane.OK_CANCEL_OPTION, Configuration.warningAbcClean, JOptionPane.OK_OPTION) != JOptionPane.OK_OPTION) {
if (ViewMessages.showConfirmDialog(this, AppStrings.translate("warning.cleanAbc"), AppStrings.translate("message.warning"), JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE, Configuration.warningAbcClean, JOptionPane.OK_OPTION) != JOptionPane.OK_OPTION) {
return;
}
ABCCleaner cleaner = new ABCCleaner();