We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a34b336 commit ffce5deCopy full SHA for ffce5de
1 file changed
widget_time.go
@@ -50,7 +50,7 @@ func (w *TimeWidget) Update(dev *streamdeck.Device) error {
50
formats := strings.Split(w.format, ";")
51
fonts := strings.Split(w.font, ";")
52
53
- if len(formats) == 0 {
+ if len(formats) == 0 || len(w.format) == 0 {
54
return fmt.Errorf("no time format supplied")
55
}
56
for len(fonts) < len(formats) {
0 commit comments