Cap ChemMaster label length (#12260)

* Cap ChemMaster label length

* Reroll for green checkmark
This commit is contained in:
0x6273
2022-10-28 19:43:59 +02:00
committed by GitHub
parent 3078e359c0
commit a2e6ab2d07
3 changed files with 12 additions and 0 deletions

View File

@@ -79,6 +79,9 @@ namespace Content.Client.Chemistry.UI
PillNumber.InitDefaultButtons();
BottleDosage.InitDefaultButtons();
// Ensure label length is within the character limit.
LabelLineEdit.IsValid = s => s.Length <= SharedChemMaster.LabelMaxLength;
Tabs.SetTabTitle(0, Loc.GetString("chem-master-window-input-tab"));
Tabs.SetTabTitle(1, Loc.GetString("chem-master-window-output-tab"));
}