mirror of https://github.com/Fabio286/antares.git
16 lines
347 B
TypeScript
16 lines
347 B
TypeScript
import { app, ipcMain, dialog } from 'electron';
|
|
|
|
export default () => {
|
|
ipcMain.on('close-app', () => {
|
|
app.exit();
|
|
});
|
|
|
|
ipcMain.handle('show-open-dialog', (event, options) => {
|
|
return dialog.showOpenDialog(options);
|
|
});
|
|
|
|
ipcMain.handle('get-download-dir-path', () => {
|
|
return app.getPath('downloads');
|
|
});
|
|
};
|