Skip to content

Commit

Permalink
Fix visual style not changing until F5 press
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Jun 3, 2021
1 parent 0c5ba96 commit d39e282
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/ArrayVisualizer.java
Original file line number Diff line number Diff line change
Expand Up @@ -1085,6 +1085,9 @@ public void setVisual(VisualStyles choice) {
((CustomImage) this.visualClasses[9]).enableImgMenu();
}
this.VisualStyles = choice;
synchronized (this) {
this.updateNow();
}
}

public int getCurrentGap() {
Expand Down

0 comments on commit d39e282

Please sign in to comment.