This commit is contained in:
YeonV 2023-03-14 18:59:51 +01:00
parent 893f595167
commit b5ea4d2edc
2 changed files with 10 additions and 10 deletions

View File

@ -139,14 +139,14 @@ const ready = () => (
} else {
subpy = require('child_process').spawn(`${path.join(path.dirname(__dirname), isDev ? 'extraResources' : '../extraResources','LedFx-notray.exe')}`, ['-p', '8888']);
}
}
}
wind = integratedCore
? createWindow({ additionalArguments: ['integratedCore'] })
: createWindow();
require('@electron/remote/main').enable(wind.webContents);
if (isDev) {
await installExtension([REACT_DEVELOPER_TOOLS, REDUX_DEVTOOLS], {
loadExtensionOptions: { allowFileAccess: true },
@ -200,7 +200,7 @@ const ready = () => (
contextMenu = Menu.buildFromTemplate([
{ label: 'Show', click: () => {
if (process.platform === 'darwin') app.dock.show()
wind.show()
wind.show()
}},
{ label: 'Minimize', click: () => wind.minimize() },
{ label: 'Minimize to tray', click: () => {

View File

@ -168,11 +168,11 @@ PERFORMANCE OF THIS SOFTWARE.
* LICENSE file in the root directory of this source tree.
*/
/**!
* hotkeys-js v3.9.4
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
*
* Copyright (c) 2022 kenny wong <wowohoo@qq.com>
* http://jaywcjlove.github.io/hotkeys
* Licensed under the MIT license
/**!
* hotkeys-js v3.9.4
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
*
* Copyright (c) 2022 kenny wong <wowohoo@qq.com>
* http://jaywcjlove.github.io/hotkeys
* Licensed under the MIT license
*/