
Installing the model via ControllerModelGetEvent
TheTzdDark opened this issue ยท 1 comments
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.