mirror of https://github.com/rusefi/RomRaider.git
Add optimization
This commit is contained in:
parent
a7aaae3d86
commit
574aed6b77
|
@ -104,17 +104,13 @@ public class DataCellView extends JLabel implements MouseListener, Serializable
|
|||
return SettingsManager.getSettings();
|
||||
}
|
||||
|
||||
public void updatePresetPanel() {
|
||||
tableView.updatePresetPanel();
|
||||
}
|
||||
|
||||
public void drawCell() {
|
||||
if(tableView == null || tableView.isHidden()) {
|
||||
// Table will be null in the static case.
|
||||
return;
|
||||
}
|
||||
|
||||
updatePresetPanel();
|
||||
tableView.updatePresetPanel();
|
||||
this.invalidate();
|
||||
setFont(getSettings().getTableFont());
|
||||
setText(getCellText());
|
||||
|
|
|
@ -171,7 +171,10 @@ public class PresetPanel extends JPanel {
|
|||
}
|
||||
|
||||
//Make sure we update all other checkboxes
|
||||
view.updatePresetPanel();
|
||||
//DataCellView usually calls this, but we dont have any DataCell
|
||||
//if we are hidden
|
||||
if(view.isHidden())
|
||||
view.updatePresetPanel();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue