2023-09-16 18:04:14 +08:00
|
|
|
import { app, ipcMain } from 'electron'
|
2023-10-12 17:35:27 +08:00
|
|
|
|
|
|
|
import handles from './handles/index.js'
|
2024-09-08 01:55:54 +08:00
|
|
|
import shortcuts from './shortcuts/index.js'
|
2024-05-14 19:16:46 +08:00
|
|
|
import theme from './theme/index.js'
|
2024-09-08 01:55:54 +08:00
|
|
|
import tray from './tray/index.js'
|
|
|
|
import updater from './updater/index.js'
|
2023-09-16 18:04:14 +08:00
|
|
|
|
2023-10-11 18:54:41 +08:00
|
|
|
export default (mainWindow) => {
|
|
|
|
ipcMain.on('restart-app', () => {
|
2023-10-25 18:43:12 +08:00
|
|
|
app.isQuiting = true
|
2023-10-11 18:54:41 +08:00
|
|
|
app.relaunch()
|
|
|
|
app.quit()
|
|
|
|
})
|
2024-05-13 22:49:39 +08:00
|
|
|
|
2023-10-21 16:28:14 +08:00
|
|
|
handles(mainWindow)
|
|
|
|
updater(mainWindow)
|
|
|
|
tray(mainWindow)
|
2024-05-14 19:16:46 +08:00
|
|
|
theme(mainWindow)
|
|
|
|
shortcuts(mainWindow)
|
2023-10-11 18:54:41 +08:00
|
|
|
}
|