Skip to content

Commit

Permalink
Only update visualization panel if mode description is actually altered
Browse files Browse the repository at this point in the history
  • Loading branch information
bwRavencl committed Mar 3, 2024
1 parent 46d14d8 commit c887070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/de/bwravencl/controllerbuddy/gui/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -4340,7 +4340,7 @@ public void removeUpdate(final DocumentEvent e) {
private void setModeDescription() {
final var description = modeDescriptionTextField.getText();

if (description != null && !description.isEmpty()) {
if (description != null && !description.isEmpty() && !description.equals(mode.getDescription())) {
mode.setDescription(description);
setUnsavedChanges(true);
updateVisualizationPanel();
Expand Down

0 comments on commit c887070

Please sign in to comment.