Skip to content

Commit

Permalink
Correctly register JavaScriptDrawableControl
Browse files Browse the repository at this point in the history
  • Loading branch information
scheffle committed Jan 27, 2024
1 parent 0acfb07 commit a2e9d33
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vstgui/uidescription-scripting/uiscripting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include "../uidescription/uiviewcreator.h"
#include "../uidescription/uidescriptionaddonregistry.h"
#include "../uidescription/detail/uiviewcreatorattributes.h"
#include "../uidescription/viewcreator/controlcreator.h"
#include "../lib/iviewlistener.h"
#include "../lib/events.h"
#include "../lib/cresourcedescription.h"
Expand Down Expand Up @@ -456,7 +455,7 @@ struct JavaScriptDrawableViewCreator : ViewCreatorAdapter
};

//------------------------------------------------------------------------
struct JavaScriptDrawableControlCreator : UIViewCreator::ControlCreator
struct JavaScriptDrawableControlCreator : ViewCreatorAdapter
{
IdStringPtr getViewName () const override { return "JavaScriptDrawableControl"; }
IdStringPtr getBaseViewName () const override { return UIViewCreator::kCControl; }
Expand Down Expand Up @@ -1803,6 +1802,8 @@ void UIScripting::init (const OnScriptException& func)
UIDescriptionAddOnRegistry::add (std::make_unique<UIScripting> ());
static ScriptingInternal::JavaScriptDrawableViewCreator jsViewCreator;
UIViewFactory::registerViewCreator (jsViewCreator);
static ScriptingInternal::JavaScriptDrawableControlCreator jsControlCreator;
UIViewFactory::registerViewCreator (jsControlCreator);
}

//------------------------------------------------------------------------
Expand Down

0 comments on commit a2e9d33

Please sign in to comment.