ConfigObject: Mark object names as required

This prevents a user from creating an object without a valid name such as `"", null`.
This commit is contained in:
Yonas Habteab 2022-06-21 11:12:03 +02:00
parent eb74898271
commit 148f5b8416
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ private:
abstract class ConfigObject : ConfigObjectBase < ConfigType
{
[config, no_user_modify] String __name (Name);
[config, no_user_modify] String "name" (ShortName) {
[config, no_user_modify, required] String "name" (ShortName) {
get {{{
String shortName = m_ShortName.load();
if (shortName.IsEmpty())