do not autosave header when not configured to do so

This commit is contained in:
Jindra Petřík
2022-12-22 18:22:51 +01:00
parent c2ceec8628
commit 26e2d7e9a2

View File

@@ -408,7 +408,7 @@ public class HeaderInfoPanel extends JPanel implements TagEditorPanel {
@Override
public boolean tryAutoSave() {
if (saveButton.isVisible() && saveButton.isEnabled()) {
if (saveButton.isVisible() && saveButton.isEnabled() && Configuration.autoSaveTagModifications.get()) {
saveButtonActionPerformed(null);
}
return !(saveButton.isVisible() && saveButton.isEnabled());