feat: Added event canceling

This commit is contained in:
AURUMVORXX
2024-11-06 18:35:33 +03:00
parent f6fd5893a4
commit 882d2cc038
2 changed files with 13 additions and 3 deletions

View File

@@ -33,8 +33,11 @@ void callEvent(const char* eventName, py::dict kwargs)
{
try
{
g2o.attr("callEvent")(eventName, **kwargs);
bool result = g2o.attr("callEvent")(eventName, **kwargs).cast<bool>();
if (result)
{
Sqrat::RootTable().GetFunction("cancelEvent").Execute();
}
}
catch (py::error_already_set &e)
{