Skip to content

Commit

Permalink
style: prettier formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Wurielle authored and actions-user committed Dec 23, 2023
1 parent ef0ffac commit 5654241
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions apps/app/src/electron/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const App = () => {

const onQuit = () => {
/* fixes app.quit(): https://stackoverflow.com/a/75369483 */
ElectronWindowManager.getInstances().forEach(({window})=>{
ElectronWindowManager.getInstances().forEach(({ window }) => {
window.removeAllListeners()
})
destroyWinMouse()
Expand Down Expand Up @@ -115,7 +115,6 @@ const App = () => {
handleQuit(true)
}
})

;['SIGINT', 'SIGTERM', 'SIGQUIT'].forEach((signal) => {
process.on(signal, () => {
handleQuit(true)
Expand Down
4 changes: 2 additions & 2 deletions apps/app/src/teams/tray/electron-tray.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const createTray = (): Promise<Tray> =>
{
label: 'Display',
submenu: allDisplays.map(({ id }) => ({
label: `${ (id === primaryDisplay.id && '(Primary) ') || '' }${ id }`,
label: `${(id === primaryDisplay.id && '(Primary) ') || ''}${id}`,
type: 'radio',
checked:
settingsStore.display !== null
Expand Down Expand Up @@ -54,7 +54,7 @@ const createTray = (): Promise<Tray> =>
tray.setContextMenu(getContextMenu())
}

tray.setToolTip(`${ app.name } - v${ app.getVersion() }`)
tray.setToolTip(`${app.name} - v${app.getVersion()}`)
tray.setContextMenu(getContextMenu())
tray.on('click', electronMessengerWindow.show)
updateContextMenu()
Expand Down

0 comments on commit 5654241

Please sign in to comment.