Skip to content

Commit

Permalink
Minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
richrace committed Sep 21, 2023
1 parent fc73290 commit aa6b6f5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/headphone_view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ';
}

Expand Down

0 comments on commit aa6b6f5

Please sign in to comment.