aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAllister MacLeod <[email protected]>2024-10-08 12:27:01 -0400
committerGitHub <[email protected]>2024-10-08 12:27:01 -0400
commit4aea919a4d805a0cfafd475e4ee0170c4ea19667 (patch)
tree9b9d454b4728ada5ae045e88d563872b13d2e579
parent47a17c64d71a1115fb1eb66bf2a7af90463be315 (diff)
downloadzmk-4aea919a4d805a0cfafd475e4ee0170c4ea19667.tar.gz
zmk-4aea919a4d805a0cfafd475e4ee0170c4ea19667.zip
fix(display): Adding length check to layer_label in nice_view status widget.
-rw-r--r--app/boards/shields/nice_view/widgets/status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/boards/shields/nice_view/widgets/status.c b/app/boards/shields/nice_view/widgets/status.c
index fa0223551c..5cbbd91cd2 100644
--- a/app/boards/shields/nice_view/widgets/status.c
+++ b/app/boards/shields/nice_view/widgets/status.c
@@ -179,7 +179,7 @@ static void draw_bottom(lv_obj_t *widget, lv_color_t cbuf[], const struct status
lv_canvas_draw_rect(canvas, 0, 0, CANVAS_SIZE, CANVAS_SIZE, &rect_black_dsc);
// Draw layer
- if (state->layer_label == NULL) {
+ if (state->layer_label == NULL || strlen(state->layer_label) == 0) {
char text[10] = {};
sprintf(text, "LAYER %i", state->layer_index);