From b8cfc67cfabef5e696c53dd95a02556411a94e01 Mon Sep 17 00:00:00 2001 From: Jeroen Veltmans Date: Mon, 15 Apr 2024 10:42:06 +0200 Subject: [PATCH 1/2] Update state after toggle --- src/ui/components/button/MuteButton.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/components/button/MuteButton.tsx b/src/ui/components/button/MuteButton.tsx index 9d91b78..85f0c3f 100644 --- a/src/ui/components/button/MuteButton.tsx +++ b/src/ui/components/button/MuteButton.tsx @@ -45,6 +45,7 @@ export class MuteButton extends PureComponent private toggleMuted = () => { const player = (this.context as UiContext).player; player.muted = !player.muted; + this.setState({ muted: player.muted }); }; render() { From ad7a5c11a30c168b1c493c12431d6d0390335d38 Mon Sep 17 00:00:00 2001 From: Jeroen Veltmans Date: Mon, 15 Apr 2024 10:45:25 +0200 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 55bcadf..f980e1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## Unreleased + +### Fixed + +- Fixed an issue where the mute button sometimes did not update its icon after toggling. + ## 0.7.0 (2024-04-11) ### Added