Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Feb 7, 2025
1 parent 005cf96 commit b3d11f4
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 9 deletions.
Binary file modified packages/project-editor/flow/runtime/eez_runtime.wasm
Binary file not shown.
Binary file modified packages/project-editor/flow/runtime/lvgl_runtime_v8.3.wasm
Binary file not shown.
Binary file modified packages/project-editor/flow/runtime/lvgl_runtime_v9.0.wasm
Binary file not shown.
23 changes: 16 additions & 7 deletions resources/eez-framework-amalgamation/eez-flow.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Autogenerated on February 5, 2025 12:40:14 PM from eez-framework commit 29db91ae3f40d111c7c922009def4d25f2517209 */
/* Autogenerated on February 7, 2025 12:03:01 PM from eez-framework commit 71b85305f6ed9cb46d8759b4ccb93d82534fd587 */
/*
* eez-framework
*
Expand Down Expand Up @@ -6937,6 +6937,11 @@ void tick() {
}
}
finishToDebuggerMessageHook();
for (FlowState *flowState = g_firstFlowState; flowState; flowState = flowState->nextSibling) {
if (flowState->deleteOnNextTick) {
freeFlowState(flowState);
}
}
}
void stop() {
g_isStopping = true;
Expand Down Expand Up @@ -6982,9 +6987,11 @@ FlowState *getPageFlowState(Assets *assets, int16_t pageIndex, const WidgetCurso
break;
}
}
if (!flowState) {
if (flowState) {
flowState->deleteOnNextTick = false;
} else {
flowState = initPageFlowState(assets, pageIndex, nullptr, 0);
}
}
return flowState;
}
}
Expand All @@ -7004,7 +7011,9 @@ FlowState *getPageFlowState(Assets *assets, int16_t pageIndex) {
break;
}
}
if (!flowState) {
if (flowState) {
flowState->deleteOnNextTick = false;
} else {
flowState = initPageFlowState(assets, pageIndex, nullptr, 0);
}
return flowState;
Expand All @@ -7014,10 +7023,9 @@ int getPageIndex(FlowState *flowState) {
return flowState->flowIndex;
}
void deletePageFlowState(Assets *assets, int16_t pageIndex) {
FlowState *flowState;
for (flowState = g_firstFlowState; flowState; flowState = flowState->nextSibling) {
for (FlowState *flowState = g_firstFlowState; flowState; flowState = flowState->nextSibling) {
if (flowState->flowIndex == pageIndex) {
freeFlowState(flowState);
flowState->deleteOnNextTick = true;
return;
}
}
Expand Down Expand Up @@ -10235,6 +10243,7 @@ static FlowState *initFlowState(Assets *assets, int flowIndex, FlowState *parent
flowState->flow = flowDefinition->flows[flowIndex];
flowState->flowIndex = flowIndex;
flowState->error = false;
flowState->deleteOnNextTick = false;
flowState->refCounter = 0;
flowState->parentFlowState = parentFlowState;
flowState->executingComponentIndex = NO_COMPONENT_INDEX;
Expand Down
3 changes: 2 additions & 1 deletion resources/eez-framework-amalgamation/eez-flow.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Autogenerated on February 5, 2025 12:40:14 PM from eez-framework commit 29db91ae3f40d111c7c922009def4d25f2517209 */
/* Autogenerated on February 7, 2025 12:03:01 PM from eez-framework commit 71b85305f6ed9cb46d8759b4ccb93d82534fd587 */
/*
* eez-framework
*
Expand Down Expand Up @@ -2311,6 +2311,7 @@ struct FlowState {
uint16_t flowIndex;
bool isAction;
bool error;
bool deleteOnNextTick;
uint32_t refCounter;
FlowState *parentFlowState;
Component *parentComponent;
Expand Down
2 changes: 1 addition & 1 deletion wasm/eez-framework

0 comments on commit b3d11f4

Please sign in to comment.