Fix ForcePriority Model Highlighting
I accidentally patched in a pre-fix version of the ForcePriority change which did not have model highlighting on the recorded tab when enabled.
This commit is contained in:
parent
a4f3df17c7
commit
4936ecf191
|
@ -36,6 +36,9 @@ public class ModelNameTableCell extends IconTableCell<ModelName> {
|
|||
tooltip = group.getModelUrls().size() + " models:\n";
|
||||
tooltip += group.getModelUrls().stream().collect(Collectors.joining("\n"));
|
||||
});
|
||||
if (m.isForcePriority()) {
|
||||
this.setStyle(getStyle() + "-fx-text-fill: darkred;" + "-fx-font-weight: bold;");
|
||||
}
|
||||
}
|
||||
super.updateItem(modelName, empty);
|
||||
}
|
||||
|
|
|
@ -413,10 +413,6 @@ public class RecordedModelsTab extends AbstractRecordedModelsTab implements TabS
|
|||
prio = Math.min(Math.max(0, prio), Model.MAX_PRIO);
|
||||
m.setPriority(prio);
|
||||
updatePriority(m, prio);
|
||||
if (m.isForcePriority()) {
|
||||
tableCell.setStyle("-fx-font-weight: bold;");
|
||||
tableCell.setStyle("-fx-background-color: red;");
|
||||
}
|
||||
}
|
||||
});
|
||||
tableCell.setStyle("-fx-alignment: CENTER-LEFT;");
|
||||
|
|
Loading…
Reference in New Issue