|
@@ -94,16 +94,16 @@ export const attachIPCHandlers = () => {
|
|
|
|
|
|
// - General
|
|
|
|
|
|
- ipcMain.handle("appVersion", (_) => appVersion());
|
|
|
+ ipcMain.handle("appVersion", () => appVersion());
|
|
|
|
|
|
ipcMain.handle("openDirectory", (_, dirPath) => openDirectory(dirPath));
|
|
|
|
|
|
- ipcMain.handle("openLogDirectory", (_) => openLogDirectory());
|
|
|
+ ipcMain.handle("openLogDirectory", () => openLogDirectory());
|
|
|
|
|
|
// See [Note: Catching exception during .send/.on]
|
|
|
ipcMain.on("logToDisk", (_, message) => logToDisk(message));
|
|
|
|
|
|
- ipcMain.on("clear-electron-store", (_) => {
|
|
|
+ ipcMain.on("clear-electron-store", () => {
|
|
|
clearElectronStore();
|
|
|
});
|
|
|
|
|
@@ -111,11 +111,11 @@ export const attachIPCHandlers = () => {
|
|
|
setEncryptionKey(encryptionKey),
|
|
|
);
|
|
|
|
|
|
- ipcMain.handle("getEncryptionKey", (_) => getEncryptionKey());
|
|
|
+ ipcMain.handle("getEncryptionKey", () => getEncryptionKey());
|
|
|
|
|
|
// - App update
|
|
|
|
|
|
- ipcMain.on("update-and-restart", (_) => updateAndRestart());
|
|
|
+ ipcMain.on("update-and-restart", () => updateAndRestart());
|
|
|
|
|
|
ipcMain.on("skip-app-update", (_, version) => skipAppUpdate(version));
|
|
|
|
|
@@ -160,13 +160,13 @@ export const attachIPCHandlers = () => {
|
|
|
|
|
|
// - File selection
|
|
|
|
|
|
- ipcMain.handle("selectDirectory", (_) => selectDirectory());
|
|
|
+ ipcMain.handle("selectDirectory", () => selectDirectory());
|
|
|
|
|
|
- ipcMain.handle("showUploadFilesDialog", (_) => showUploadFilesDialog());
|
|
|
+ ipcMain.handle("showUploadFilesDialog", () => showUploadFilesDialog());
|
|
|
|
|
|
- ipcMain.handle("showUploadDirsDialog", (_) => showUploadDirsDialog());
|
|
|
+ ipcMain.handle("showUploadDirsDialog", () => showUploadDirsDialog());
|
|
|
|
|
|
- ipcMain.handle("showUploadZipDialog", (_) => showUploadZipDialog());
|
|
|
+ ipcMain.handle("showUploadZipDialog", () => showUploadZipDialog());
|
|
|
|
|
|
// - FS
|
|
|
|
|
@@ -206,7 +206,7 @@ export const attachIPCHandlers = () => {
|
|
|
|
|
|
// - Upload
|
|
|
|
|
|
- ipcMain.handle("getPendingUploads", (_) => getPendingUploads());
|
|
|
+ ipcMain.handle("getPendingUploads", () => getPendingUploads());
|
|
|
|
|
|
ipcMain.handle(
|
|
|
"setToUploadFiles",
|
|
@@ -255,7 +255,7 @@ export const attachFSWatchIPCHandlers = (watcher: FSWatcher) => {
|
|
|
removeWatchMapping(watcher, folderPath),
|
|
|
);
|
|
|
|
|
|
- ipcMain.handle("getWatchMappings", (_) => getWatchMappings());
|
|
|
+ ipcMain.handle("getWatchMappings", () => getWatchMappings());
|
|
|
|
|
|
ipcMain.handle(
|
|
|
"updateWatchMappingSyncedFiles",
|