diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -109,7 +109,9 @@ func (ui *Ui) HandleInputs(gtx layout.Context) { ui.State.PlayerContext, ui.State.PlayerCancel = context.WithCancel(context.Background()) var targets []net.HardwareAddr for _, entry := range ui.State.Config.Soundboxes { - targets = append(targets, net.HardwareAddr(entry.Mac)) + if entry.Enabled { + targets = append(targets, net.HardwareAddr(entry.Mac)) + } } go play(ui.State.PlayerContext, ui.State.UrlSelector.Value, targets, ui) } |