From 38854d2435a9cc04d6eb962bba61701adc3dc96a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Fri, 10 Apr 2020 17:11:29 +0200 Subject: [PATCH] [apps/code] Fix cell type --- apps/code/variable_box_controller.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/code/variable_box_controller.h b/apps/code/variable_box_controller.h index e43649c9e..4a6cd9570 100644 --- a/apps/code/variable_box_controller.h +++ b/apps/code/variable_box_controller.h @@ -36,8 +36,8 @@ private: constexpr static int k_maxScriptNodesCount = 32; //TODO LEA constexpr static int k_totalBuiltinNodesCount = 98; constexpr static uint8_t k_scriptOriginsCount = 3; - constexpr static uint8_t k_subtitleCellType = 0; - constexpr static uint8_t k_itemCellType = 1; + constexpr static uint8_t k_subtitleCellType = NodeCellType; // We don't care as it is not selectable + constexpr static uint8_t k_itemCellType = LeafCellType; // So that upper class NestedMenuController knows it's a leaf constexpr static KDCoordinate k_subtitleRowHeight = 23; constexpr static KDCoordinate k_simpleItemRowHeight = 27; constexpr static KDCoordinate k_complexItemRowHeight = 44;