summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.go b/main.go
index 047769c..b6f4b83 100644
--- a/main.go
+++ b/main.go
@@ -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)
}