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:
XxInvictus 2023-11-23 15:00:46 +10:30
parent a4f3df17c7
commit 4936ecf191
2 changed files with 3 additions and 4 deletions

View File

@ -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);
}

View File

@ -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;");