mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-01 12:02:40 +02:00
don't allow tags unless 4 letters long
This commit is contained in:
@@ -151,6 +151,11 @@ void TagsView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool
|
|||||||
|
|
||||||
void TagsView::addTag()
|
void TagsView::addTag()
|
||||||
{
|
{
|
||||||
|
if (tagInput->GetText().length() < 4)
|
||||||
|
{
|
||||||
|
new ErrorMessage("Tag not long enough", "Must be at least 4 letters");
|
||||||
|
return;
|
||||||
|
}
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
c->AddTag(tagInput->GetText());
|
c->AddTag(tagInput->GetText());
|
||||||
|
Reference in New Issue
Block a user