fix engine sniffer repaint (#3981)

This commit is contained in:
Matthew Kennedy 2022-03-05 05:37:57 -08:00 committed by GitHub
parent 1b8d530c29
commit 8eff02a5d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -221,10 +221,8 @@ public class EngineSnifferPanel {
image.setWaveReport(wr, revolutions);
}
/**
* this is to fix the UI glitch when images tab shows a tiny square
*/
UiUtils.trueLayout(chartPanel.getParent());
// Repaint now that we've updated state
SwingUtilities.invokeLater(() -> UiUtils.trueRepaint(imagePanel));
}
public JPanel getPanel() {

View File

@ -129,7 +129,6 @@ public class UpDownImage extends JPanel {
this.engineReport = wr;
propagateDwellIntoSensor(wr);
this.revolutions = revolutions;
UiUtils.trueRepaint(this);
}
private void propagateDwellIntoSensor(EngineReport wr) {