diff options
| author | 2020-07-06 12:33:43 +0200 | |
|---|---|---|
| committer | 2020-07-06 12:33:43 +0200 | |
| commit | 1a08b8abf721d375db83cec78e2f520a802ab1e4 (patch) | |
| tree | 098df663a83341c24fa33abd942e929fdc1b80c4 /enigma-swing/src/main | |
| parent | Only try to set decompiler service on the class handle provider if it exists. (diff) | |
| download | enigma-1a08b8abf721d375db83cec78e2f520a802ab1e4.tar.gz enigma-1a08b8abf721d375db83cec78e2f520a802ab1e4.tar.xz enigma-1a08b8abf721d375db83cec78e2f520a802ab1e4.zip | |
Fix "Mark as Deobfuscated" menu entry not working... this time without breaking all the things hopefully (#284)
* Fix "Mark as Deobfuscated" menu entry not working... this time hopefully without breaking all the things
* Use ungrouped() for MappingDelta
* Fix *DefEntry overriding the wrong translate() version
Diffstat (limited to 'enigma-swing/src/main')
| -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")); |