Archived
Refactoring
This commit is contained in:
1 parent
12ad878618
commit
acb8e59660
13 files changed
+64
-36
No files matched your search
+25
-12
@@ -308,16 +308,29 @@ if (!instanceLock) {
|
||||
configurePrimaryApp();
|
||||
}
|
||||
|
||||
const AppFunctions = {
|
||||
closeApplication,
|
||||
detectScript,
|
||||
dialog,
|
||||
getCleanupReleases: () => cleanupReleases,
|
||||
getMainWindow,
|
||||
saveUiSettings,
|
||||
setIsInstalling,
|
||||
setTrayImage,
|
||||
setWindowVisibility,
|
||||
standardIPCReply,
|
||||
unmountAllDrives: MountsIPC.unmountAllDrives,
|
||||
};
|
||||
|
||||
AppIPC.addListeners(ipcMain, closeApplication, setWindowVisibility);
|
||||
ConfigIPC.addListeners(ipcMain, standardIPCReply);
|
||||
DaemonIPC.addListeners(ipcMain, standardIPCReply);
|
||||
DependencyIPC.addListeners(ipcMain, standardIPCReply);
|
||||
DownloadIPC.addListeners(ipcMain, standardIPCReply);
|
||||
FilesystemIPC.addListeners(ipcMain, getMainWindow, dialog);
|
||||
MountsIPC.addListeners(ipcMain, setTrayImage, standardIPCReply);
|
||||
PlatformIPC.addListeners(ipcMain, detectScript, saveUiSettings);
|
||||
ReleaseIPC.addListeners(ipcMain, () => cleanupReleases, standardIPCReply);
|
||||
StateIPC.addListeners(ipcMain);
|
||||
SystemIPC.addListeners(ipcMain, closeApplication);
|
||||
UpgradeIPC.addListeners(ipcMain, setIsInstalling, MountsIPC.unmountAllDrives, standardIPCReply);
|
||||
AppIPC.addListeners(ipcMain, AppFunctions);
|
||||
ConfigIPC.addListeners(ipcMain, AppFunctions);
|
||||
DaemonIPC.addListeners(ipcMain, AppFunctions);
|
||||
DependencyIPC.addListeners(ipcMain, AppFunctions);
|
||||
DownloadIPC.addListeners(ipcMain, AppFunctions);
|
||||
FilesystemIPC.addListeners(ipcMain, AppFunctions);
|
||||
MountsIPC.addListeners(ipcMain, AppFunctions);
|
||||
PlatformIPC.addListeners(ipcMain, AppFunctions);
|
||||
ReleaseIPC.addListeners(ipcMain, AppFunctions);
|
||||
StateIPC.addListeners(ipcMain, AppFunctions);
|
||||
SystemIPC.addListeners(ipcMain, AppFunctions);
|
||||
UpgradeIPC.addListeners(ipcMain, AppFunctions);
|
||||
Reference in new issue
Block a user