This commit is contained in:
gsx
2022-05-13 19:44:02 +08:00
parent d3702d4a6c
commit 45decd48c4
2 changed files with 23 additions and 2 deletions

View File

@@ -13,6 +13,12 @@ module.exports = {
* 安装
*/
install (eeApp) {
// 开发环境,代码热更新开启时,会导致托盘中有残影
// 目前没有找到合适的解决方案
// 启用热更新功能时,不加载该模块
// 如果调试该模式请使用dev模式
if (process.env.EE_SERVER_ENV == 'local' && process.env.HOT_RELOAD) return;
eeApp.logger.info('[preload] load tray module');
const trayConfig = eeApp.config.tray;
const mainWindow = eeApp.electron.mainWindow;