Skip to content

Commit

Permalink
feat: add a description for awake mode
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyencongcuong committed Oct 2, 2024
1 parent 9d8a4a2 commit 1919598
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/services/tray.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class TrayService {
const updateTrayMenu = () => {
const contextMenu = Menu.buildFromTemplate([
{
label: PowerService.isAwakeAllowed ? 'Allow sleep' : 'Allow awake',
label: PowerService.isAwakeAllowed ? 'Allow sleep' : 'Keep awake',
accelerator: 'Cmd+W',
click: () => {
if (PowerService.isAwakeAllowed) {
Expand All @@ -62,6 +62,13 @@ export class TrayService {
updateTrayMenu();
},
},
{
label: `Awake mode: ${PowerService.isAwakeAllowed ? 'ON' : 'OFF'}`,
toolTip: PowerService.isAwakeAllowed
? 'Your Mac is staying awake'
: 'Your Mac will sleep on normal schedule',
enabled: false,
},
{
type: 'separator',
},
Expand Down

0 comments on commit 1919598

Please sign in to comment.