refactor: add LAB_BS_DEFAULT in lab_button_state

This commit is contained in:
tokyo4j 2025-01-14 00:04:15 +09:00 committed by Hiroaki Yamamoto
parent 36d6e9ef75
commit bffdccf8dc
4 changed files with 10 additions and 5 deletions

View file

@ -100,7 +100,8 @@ add_scene_button(struct wl_list *part_list, enum ssd_part_type type,
/* Icons */
struct wlr_scene_node *nodes[LAB_BS_ALL + 1] = {0};
for (uint8_t state_set = 0; state_set <= LAB_BS_ALL; state_set++) {
for (uint8_t state_set = LAB_BS_DEFAULT;
state_set <= LAB_BS_ALL; state_set++) {
if (!imgs[state_set]) {
continue;
}