Skip to content

Commit

Permalink
REGRESSION: Refresh map when closing a text editor
Browse files Browse the repository at this point in the history
  • Loading branch information
mmyers committed Jul 8, 2024
1 parent 92554e1 commit 405fe5a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions EU3_Scenario_Editor/src/editor/EditorUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 405fe5a

Please sign in to comment.