escrcpy/electron/events/index.js

22 lines
484 B
JavaScript
Raw Normal View History

import { app, ipcMain } from 'electron'
import handles from './handles/index.js'
2024-09-07 19:55:54 +02:00
import shortcuts from './shortcuts/index.js'
import theme from './theme/index.js'
2024-09-07 19:55:54 +02:00
import tray from './tray/index.js'
import updater from './updater/index.js'
export default (mainWindow) => {
ipcMain.on('restart-app', () => {
app.isQuiting = true
app.relaunch()
app.quit()
})
2024-05-13 16:49:39 +02:00
handles(mainWindow)
updater(mainWindow)
tray(mainWindow)
theme(mainWindow)
shortcuts(mainWindow)
}