1
0
mirror of https://github.com/SKCraft/Launcher.git synced 2024-11-27 12:46:22 +01:00

Remove "(not installed)" etc. which causes wrapping.

This commit is contained in:
sk89q 2015-02-20 13:22:48 -08:00
parent 468a12f1c6
commit d6e7c02174

View File

@ -110,22 +110,10 @@ public class InstanceTableModel extends AbstractTableModel {
}
case 1:
instance = instances.get(rowIndex);
return "<html>" + SwingHelper.htmlEscape(instance.getTitle()) + getAddendum(instance) + "</html>";
return instance.getTitle();
default:
return null;
}
}
private String getAddendum(Instance instance) {
if (!instance.isLocal()) {
return " <span style=\"color: #cccccc\">" + SharedLocale.tr("launcher.notInstalledHint") + "</span>";
} else if (!instance.isInstalled()) {
return " <span style=\"color: red\">" + SharedLocale.tr("launcher.requiresUpdateHint") + "</span>";
} else if (instance.isUpdatePending()) {
return " <span style=\"color: #3758DB\">" + SharedLocale.tr("launcher.updatePendingHint") + "</span>";
} else {
return "";
}
}
}