From aa6b6f5f655e618f11a3439ef69381eef64cca29 Mon Sep 17 00:00:00 2001 From: Richard Race <1273965+richrace@users.noreply.github.com> Date: Thu, 21 Sep 2023 17:01:58 +0100 Subject: [PATCH] Minor refactor --- src/headphone_view.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/headphone_view.ts b/src/headphone_view.ts index e8cf5f9..989e49f 100644 --- a/src/headphone_view.ts +++ b/src/headphone_view.ts @@ -17,9 +17,7 @@ function exportView(mainTray: any, headphone: SimpleHeadphone) { mainTray.setToolTip(`${text}`); mainTray.setTitle(` ${percentage}%`); - if (percentage === 100) { - text += ' \uD83D\uDD0B '; - } else if (headphone.isCharging) { + if (percentage === 100 || headphone.isCharging) { text += ' \uD83D\uDD0B '; }