Skip to content

Commit f9c7df2

Browse files
Kasper24CalcProgrammer1
authored andcommitted
Add a number as a label for LEDs that otherwise would be nameless in DeviceView
1 parent 65623d3 commit f9c7df2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

qt/DeviceView.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,10 @@ void DeviceView::setController(RGBController * controller_ptr)
317317
{
318318
led_labels[led_idx] = it->second.label_utf8;
319319
}
320+
else
321+
{
322+
led_labels[led_idx] = QString::number(led_idx);
323+
}
320324
}
321325

322326
/*-----------------------------------------------------*\

0 commit comments

Comments
 (0)