feat: updates

This commit is contained in:
lohxt1 2024-09-30 11:53:23 +05:30
parent a8fce54e97
commit d8bf27f288
2 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@ const registerPreferencesIpc = require('./ipc/preferences');
const Watcher = require('./app/watcher');
const { loadWindowState, saveBounds, saveMaximized } = require('./utils/window');
const registerNotificationsIpc = require('./ipc/notifications');
const registerCommonIpc = require('./ipc/common');
const registerGlobalEnvironmentsIpc = require('./ipc/globalEnvironments');
const lastOpenedCollections = new LastOpenedCollections();
@ -144,7 +144,7 @@ app.on('ready', async () => {
// register all ipc handlers
registerNetworkIpc(mainWindow);
registerCommonIpc(mainWindow);
registerGlobalEnvironmentsIpc(mainWindow);
registerCollectionsIpc(mainWindow, watcher, lastOpenedCollections);
registerPreferencesIpc(mainWindow, watcher, lastOpenedCollections);
registerNotificationsIpc(mainWindow, watcher);

View File

@ -2,7 +2,7 @@ require('dotenv').config();
const { ipcMain } = require('electron');
const { globalEnvironmentsStore } = require('../store/global-environments');
const registerCommonIpc = (mainWindow) => {
const registerGlobalEnvironmentsIpc = (mainWindow) => {
// GLOBAL ENVIRONMENTS
@ -47,4 +47,4 @@ const registerCommonIpc = (mainWindow) => {
});
};
module.exports = registerCommonIpc;
module.exports = registerGlobalEnvironmentsIpc;