Skip to content

Installing the model via ControllerModelGetEvent #95

@TheTzdDark

Description

@TheTzdDark

Continued: #92

After the commit (fed786b), the problem still remained, since the fix is incomplete.

As you said, the machine first tries to get the model from the event and returns to the default model only with an empty name, however, the new condition after correction does not behave as you described it.
The fact is that the new condition contains modelName.isEmpty, and since the application of the model from the event is triggered only when this condition is met, we get that the only model name from the event that fits this condition has the form "", which is incorrect.

The solution to the problem will be to replace modelName.isEmpty() with !modelName.isEmpty() in the condition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions