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