Skip to content

Commit 367937b

Browse files
committed
fix(integration): clean clip event handler
1 parent e381ac5 commit 367937b

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

custom/integration/cctv_controller.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,16 +133,14 @@ namespace custom::integration
133133
controller->HandleAction(*action);
134134
}
135135
}
136-
+else if (code == UI_PAGE_CCTV_EVENT_OPEN_CLIP) +
136+
else if (code == UI_PAGE_CCTV_EVENT_OPEN_CLIP)
137137
{
138-
+const auto* clip =
138+
const auto* clip =
139139
static_cast<const ui_page_cctv_clip_event_t*>(lv_event_get_param(event));
140-
+if (clip != nullptr) +
140+
if (clip != nullptr)
141141
{
142-
+controller->HandleClipRequest(*clip);
143-
+
142+
controller->HandleClipRequest(*clip);
144143
}
145-
+
146144
}
147145
}
148146

0 commit comments

Comments
 (0)