Fix undo title

This commit is contained in:
SiboVG 2022-06-15 23:26:10 +02:00
parent ab8fe16b62
commit f39d744d67
2 changed files with 6 additions and 1 deletions

View File

@ -954,6 +954,7 @@ ComponentCfgDlg.MultiComponentConfig = Multi-component configuration
ComponentCfgDlg.MultiComponentEdit = Multi-component edit
ComponentCfgDlg.MultiComponentEdit.ttip = <html>You are editing the following components:<br>
ComponentCfgDlg.Modify = Modify
ComponentCfgDlg.ModifyComponents = Modify components
!StageConfig
StageConfig.tab.Separation = Separation

View File

@ -258,7 +258,11 @@ public class ComponentConfigDialog extends JDialog implements ComponentChangeLis
dialog.setVisible(true);
////Modify
document.addUndoPosition(trans.get("ComponentCfgDlg.Modify") + " " + component.getComponentName());
if (component.getConfigListeners().size() == 0) {
document.addUndoPosition(trans.get("ComponentCfgDlg.Modify") + " " + component.getComponentName());
} else {
document.addUndoPosition(trans.get("ComponentCfgDlg.ModifyComponents"));
}
}
/**