UI User relativ functional
This commit is contained in:
@@ -167,6 +167,14 @@ ipcMain.handle('open-backup-dir-dialog', async (event) => {
|
||||
}
|
||||
});
|
||||
|
||||
ipcMain.handle('open-file-dialog', async (event) => {
|
||||
const result = await dialog.showOpenDialog({
|
||||
properties: ['openFile']
|
||||
});
|
||||
|
||||
return result.filePaths[0] || '';
|
||||
});
|
||||
|
||||
ipcMain.handle('check-file-exists', async (event, fileName) => {
|
||||
try {
|
||||
const filePath = path.join(__dirname, '..', '..', fileName);
|
||||
|
||||
Reference in New Issue
Block a user