diff options
author | metamuffin <metamuffin@disroot.org> | 2024-01-29 00:38:53 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-01-29 00:38:53 +0100 |
commit | 42dfe430a05fcc45bd3248219e489841c38f7bac (patch) | |
tree | 877921c8d8eaa7b86d83204fd13ccaabe84b24a2 /web/script/player/player.ts | |
parent | af9280c998f6c2c7c40b2067ffa02d89784b40fa (diff) | |
download | jellything-42dfe430a05fcc45bd3248219e489841c38f7bac.tar jellything-42dfe430a05fcc45bd3248219e489841c38f7bac.tar.bz2 jellything-42dfe430a05fcc45bd3248219e489841c38f7bac.tar.zst |
player: make the kind buttons work
Diffstat (limited to 'web/script/player/player.ts')
-rw-r--r-- | web/script/player/player.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/web/script/player/player.ts b/web/script/player/player.ts index 6589772..4f322a9 100644 --- a/web/script/player/player.ts +++ b/web/script/player/player.ts @@ -137,9 +137,11 @@ export class Player { console.log(`(${index}) set enabled ${state}`); const active_index = this.active_tracks.value.findIndex(t => t.track_index == index) if (!state && active_index != -1) { + this.logger?.log(`Disabled track ${index}.`) const [track] = this.active_tracks.value.splice(active_index, 1) track.abort.abort() } else if (state && active_index == -1) { + this.logger?.log(`Enabled track ${index}.`) this.active_tracks.value.push((await create_track(this, this.node_id, index, this.tracks![index]))!) if (update) await this.update() } |