diff options
Diffstat (limited to 'enigma-swing')
| -rw-r--r-- | enigma-swing/src/main/java/cuchaz/enigma/gui/Gui.java | 2 | ||||
| -rw-r--r-- | enigma-swing/src/main/java/cuchaz/enigma/gui/panels/EditorPanel.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/enigma-swing/src/main/java/cuchaz/enigma/gui/Gui.java b/enigma-swing/src/main/java/cuchaz/enigma/gui/Gui.java index 72ec9656..ec68d0df 100644 --- a/enigma-swing/src/main/java/cuchaz/enigma/gui/Gui.java +++ b/enigma-swing/src/main/java/cuchaz/enigma/gui/Gui.java | |||
| @@ -647,7 +647,7 @@ public class Gui { | |||
| 647 | 647 | ||
| 648 | Entry<?> obfEntry = cursorReference.entry; | 648 | Entry<?> obfEntry = cursorReference.entry; |
| 649 | 649 | ||
| 650 | if (controller.project.getMapper().hasDeobfMapping(obfEntry)) { | 650 | if (controller.project.getMapper().extendedDeobfuscate(obfEntry).isDeobfuscated()) { |
| 651 | if (!validateImmediateAction(vc -> this.controller.removeMapping(vc, cursorReference))) return; | 651 | if (!validateImmediateAction(vc -> this.controller.removeMapping(vc, cursorReference))) return; |
| 652 | this.controller.sendPacket(new RemoveMappingC2SPacket(cursorReference.getNameableEntry())); | 652 | this.controller.sendPacket(new RemoveMappingC2SPacket(cursorReference.getNameableEntry())); |
| 653 | } else { | 653 | } else { |
diff --git a/enigma-swing/src/main/java/cuchaz/enigma/gui/panels/EditorPanel.java b/enigma-swing/src/main/java/cuchaz/enigma/gui/panels/EditorPanel.java index 135a5291..1ba0bbb1 100644 --- a/enigma-swing/src/main/java/cuchaz/enigma/gui/panels/EditorPanel.java +++ b/enigma-swing/src/main/java/cuchaz/enigma/gui/panels/EditorPanel.java | |||
| @@ -475,7 +475,7 @@ public class EditorPanel { | |||
| 475 | this.popupMenu.openNextMenu.setEnabled(this.controller.hasNextReference()); | 475 | this.popupMenu.openNextMenu.setEnabled(this.controller.hasNextReference()); |
| 476 | this.popupMenu.toggleMappingMenu.setEnabled(isRenamable); | 476 | this.popupMenu.toggleMappingMenu.setEnabled(isRenamable); |
| 477 | 477 | ||
| 478 | if (referenceEntry != null && this.controller.project.getMapper().hasDeobfMapping(referenceEntry)) { | 478 | if (referenceEntry != null && this.controller.project.getMapper().extendedDeobfuscate(referenceEntry).isDeobfuscated()) { |
| 479 | this.popupMenu.toggleMappingMenu.setText(I18n.translate("popup_menu.reset_obfuscated")); | 479 | this.popupMenu.toggleMappingMenu.setText(I18n.translate("popup_menu.reset_obfuscated")); |
| 480 | } else { | 480 | } else { |
| 481 | this.popupMenu.toggleMappingMenu.setText(I18n.translate("popup_menu.mark_deobfuscated")); | 481 | this.popupMenu.toggleMappingMenu.setText(I18n.translate("popup_menu.mark_deobfuscated")); |