Consolidate requires

This commit is contained in:
Sam Schloegel
2022-01-05 20:25:42 -05:00
parent 221341672a
commit 35340b86db
+1 -2
View File
@@ -1,4 +1,4 @@
const { app, BrowserWindow, Menu } = require('electron');
const { app, BrowserWindow, Menu, ipcMain } = require('electron');
const path = require('path');
// Handle creating/removing shortcuts on Windows when installing/uninstalling.
@@ -62,7 +62,6 @@ app.on('window-all-closed', () => {
}
});
const { ipcMain } = require('electron');
ipcMain.on('enableDeviceDropdown', (event, arg) => {
menu.getMenuItemById('devicePin').enabled = true;
menu.getMenuItemById('deviceDelete').enabled = true;