2023-09-16 12:04:14 +02:00
|
|
|
import { app, ipcMain } from 'electron'
|
2023-10-12 11:35:27 +02:00
|
|
|
|
2024-05-14 13:16:46 +02:00
|
|
|
import shortcuts from './shortcuts/index.js'
|
2023-10-12 11:35:27 +02:00
|
|
|
import updater from './updater/index.js'
|
|
|
|
import handles from './handles/index.js'
|
2023-10-21 09:09:49 +02:00
|
|
|
import tray from './tray/index.js'
|
2024-05-14 13:16:46 +02:00
|
|
|
import theme from './theme/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
|
|
|
}
|