Skip to content

Commit

Permalink
fix: use enum
Browse files Browse the repository at this point in the history
  • Loading branch information
truemiller committed Sep 19, 2024
1 parent 54a3440 commit 369550a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions electron/components/PearlTray.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,19 @@ class PearlTray extends Electron.Tray {
isDev && logger.electron('received tray icon status:', status);
switch (status) {
case TrayIconStatus.LoggedOut: {
this.setImage(trayIcons.LOGGED_OUT);
this.setImage(trayIcons[TrayIconStatus.LoggedOut]);
break;
}
case TrayIconStatus.Running: {
this.setImage(trayIcons.RUNNING);
this.setImage(trayIcons[TrayIconStatus.Running]);
break;
}
case TrayIconStatus.Paused: {
this.setImage(trayIcons.PAUSED);
this.setImage(trayIcons[TrayIconStatus.Paused]);
break;
}
case TrayIconStatus.LowGas: {
this.setImage(trayIcons.LOW_GAS);
this.setImage(trayIcons[TrayIconStatus.LowGas]);
break;
}
default: {
Expand Down

0 comments on commit 369550a

Please sign in to comment.