Skip to content

Commit

Permalink
avoid unnecessary updates to the message editor
Browse files Browse the repository at this point in the history
fixes issue #164
  • Loading branch information
tsc-awardle committed Nov 30, 2022
1 parent 8cc7e60 commit 3c98d2c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ public RequestViewerController(Preferences preferences, boolean requestEditable,
}

public void setDisplayedEntity(LogEntry logEntry) {
// Only update message if it's new. This fixes issue #164 and improves performance during heavy scanning.
if (this.currentEntry == logEntry) { return; }

this.currentEntry = logEntry;

if (logEntry.getRequest() != null) {
Expand Down

0 comments on commit 3c98d2c

Please sign in to comment.