mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-26 20:36:48 +00:00
#886 Cancel button is disabled in editor mode fixed
This commit is contained in:
@@ -389,6 +389,7 @@ public class PreviewPanel extends JPersistentSplitPane implements TagEditorPanel
|
||||
|
||||
private void setMetadataModified(boolean value) {
|
||||
metadataSaveButton.setEnabled(value);
|
||||
metadataCancelButton.setEnabled(value);
|
||||
}
|
||||
|
||||
private void metadataTextChanged() {
|
||||
|
||||
@@ -180,6 +180,7 @@ public class TextPanel extends JPanel implements TagEditorPanel {
|
||||
|
||||
private void setModified(boolean value) {
|
||||
textSaveButton.setEnabled(value);
|
||||
textCancelButton.setEnabled(value);
|
||||
}
|
||||
|
||||
public void focusTextValue() {
|
||||
|
||||
@@ -468,6 +468,7 @@ public class ABCPanel extends JPanel implements ItemListener, SearchListener<ABC
|
||||
|
||||
private void setModified(boolean value) {
|
||||
saveDecompiledButton.setEnabled(value);
|
||||
cancelDecompiledButton.setEnabled(value);
|
||||
}
|
||||
|
||||
private boolean hasDeclaration(int pos) {
|
||||
|
||||
@@ -147,6 +147,7 @@ public class DetailPanel extends JPanel implements TagEditorPanel {
|
||||
|
||||
private void setModified(boolean value) {
|
||||
saveButton.setEnabled(value);
|
||||
cancelButton.setEnabled(value);
|
||||
}
|
||||
|
||||
public void setEditMode(boolean val) {
|
||||
|
||||
@@ -670,6 +670,7 @@ public class ActionPanel extends JPanel implements SearchListener<ActionSearchRe
|
||||
|
||||
private void setModified(boolean value) {
|
||||
saveButton.setEnabled(value);
|
||||
cancelButton.setEnabled(value);
|
||||
}
|
||||
|
||||
private boolean isDecompiledModified() {
|
||||
@@ -678,6 +679,7 @@ public class ActionPanel extends JPanel implements SearchListener<ActionSearchRe
|
||||
|
||||
private void setDecompiledModified(boolean value) {
|
||||
saveDecompiledButton.setEnabled(value);
|
||||
cancelDecompiledButton.setEnabled(value);
|
||||
}
|
||||
|
||||
public void setEditMode(boolean val) {
|
||||
|
||||
Reference in New Issue
Block a user