Remove unused code for adding and removing folders in main.js
This commit is contained in:
16
main.js
16
main.js
@@ -822,22 +822,6 @@ function buildTrayMenu() {
|
||||
return await addFolderByPath(folderPath);
|
||||
});
|
||||
|
||||
|
||||
// Ordner hinzufügen: Open-Dialog, init, Store-Update, watchen, monitoren
|
||||
ipcMain.handle('add-folder', async () => {
|
||||
const { canceled, filePaths } = await dialog.showOpenDialog({
|
||||
properties: ['openDirectory']
|
||||
});
|
||||
if (canceled || !filePaths[0]) {
|
||||
return store.get('folders');
|
||||
}
|
||||
const newFolder = filePaths[0];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Ordner entfernen: Watcher schließen, Store-Update
|
||||
ipcMain.handle('remove-folder', (_e, folderObj) => {
|
||||
const folders = store.get('folders') || [];
|
||||
|
||||
Reference in New Issue
Block a user