From 405fe5ad5b4bd8a68b95ab6846b5aa06a9e17617 Mon Sep 17 00:00:00 2001 From: mmyers Date: Mon, 8 Jul 2024 17:20:19 -0500 Subject: [PATCH] REGRESSION: Refresh map when closing a text editor --- EU3_Scenario_Editor/src/editor/EditorUI.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/EU3_Scenario_Editor/src/editor/EditorUI.java b/EU3_Scenario_Editor/src/editor/EditorUI.java index 41de77e..5a8315d 100644 --- a/EU3_Scenario_Editor/src/editor/EditorUI.java +++ b/EU3_Scenario_Editor/src/editor/EditorUI.java @@ -742,11 +742,13 @@ private void showCountryHistButtonActionPerformed(java.awt.event.ActionEvent evt @Override public void handleSaveEvent(int provId) { mapPanel.getModel().clearHistoryCache(); + mapPanel.refresh(); } @Override public void handleSaveEvent(String tagOrTitle) { mapPanel.getModel().clearHistoryCache(); + mapPanel.refresh(); } }); dlg.setVisible(true); @@ -833,11 +835,13 @@ private void showProvHistButtonActionPerformed(java.awt.event.ActionEvent evt) { @Override public void handleSaveEvent(int provId) { mapPanel.getModel().clearHistoryCache(); + mapPanel.refresh(); } @Override public void handleSaveEvent(String tagOrTitle) { mapPanel.getModel().clearHistoryCache(); + mapPanel.refresh(); } }); dlg.setVisible(true);