diff options
| author | 2021-01-24 13:18:27 +0100 | |
|---|---|---|
| committer | 2021-01-24 13:18:27 +0100 | |
| commit | cd73058b06bc41f8f38057124301bb353c1393d3 (patch) | |
| tree | 819fe124558878f9a14528842db91874519ecb40 | |
| parent | Merge pull request #340 from Juuxel/better-icons (diff) | |
| parent | Fix the structure panel not updating if switching to an existing tab (diff) | |
| download | enigma-fork-cd73058b06bc41f8f38057124301bb353c1393d3.tar.gz enigma-fork-cd73058b06bc41f8f38057124301bb353c1393d3.tar.xz enigma-fork-cd73058b06bc41f8f38057124301bb353c1393d3.zip | |
Merge pull request #341 from Juuxel/structure-panel-prs/fix-switching
Fix the structure panel not updating if switching to an existing tab
| -rw-r--r-- | enigma-swing/src/main/java/cuchaz/enigma/gui/Gui.java | 3 |
1 files changed, 1 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 d74fefd..17e1cbc 100644 --- a/enigma-swing/src/main/java/cuchaz/enigma/gui/Gui.java +++ b/enigma-swing/src/main/java/cuchaz/enigma/gui/Gui.java | |||
| @@ -489,12 +489,11 @@ public class Gui implements LanguageChangeListener { | |||
| 489 | } | 489 | } |
| 490 | }); | 490 | }); |
| 491 | 491 | ||
| 492 | showStructure(ed); | ||
| 493 | |||
| 494 | return ed; | 492 | return ed; |
| 495 | }); | 493 | }); |
| 496 | if (editorPanel != null) { | 494 | if (editorPanel != null) { |
| 497 | openFiles.setSelectedComponent(editors.get(entry).getUi()); | 495 | openFiles.setSelectedComponent(editors.get(entry).getUi()); |
| 496 | showStructure(editorPanel); | ||
| 498 | } | 497 | } |
| 499 | 498 | ||
| 500 | return editorPanel; | 499 | return editorPanel; |