From 42b67b95850b5310ffb0793c23dc21dee0faf073 Mon Sep 17 00:00:00 2001 From: the1812 Date: Sun, 20 Mar 2022 10:20:15 +0800 Subject: [PATCH] Fix mute tip (#2830) --- registry/lib/components/utils/keymap/actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/lib/components/utils/keymap/actions.ts b/registry/lib/components/utils/keymap/actions.ts index aae65b969..fe7a61870 100644 --- a/registry/lib/components/utils/keymap/actions.ts +++ b/registry/lib/components/utils/keymap/actions.ts @@ -112,7 +112,7 @@ export const builtInActions: Record = { if (lodash.isNil(result)) { return result } - if (result) { + if (playerAgent.isMute()) { showTip('已静音', 'mdi-volume-off') } else { showTip('已取消静音', 'mdi-volume-high')