File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,6 @@ async function createWindow() {
177
177
icon : `${ __static } /app.ico` ,
178
178
} )
179
179
180
- // 初始化 @electron/remote
181
180
initialize ( )
182
181
if ( win ) {
183
182
require ( '@electron/remote/main' ) . enable ( win . webContents )
Original file line number Diff line number Diff line change 1
1
import log4js from 'log4js'
2
2
import { app } from 'electron'
3
- // 根据进程类型分别导入不同的 remote 模块
3
+
4
+ // Determine if we're in renderer process and import appropriate app module
4
5
const isRenderer = process . type === 'renderer'
5
- // 渲染进程使用 @electron/remote
6
- // 主进程使用 electron 的 app 模块
6
+ // Use @electron /remote for renderer process, direct app module for main process
7
7
const electronApp = isRenderer ? require ( '@electron/remote' ) . app : app
8
+
8
9
import fs from 'fs-extra'
9
10
import path from 'path'
10
11
Original file line number Diff line number Diff line change @@ -2128,7 +2128,7 @@ export default class ConnectionsDetail extends Vue {
2128
2128
button .addEventListener (' click' , () => {
2129
2129
const sendMsg = promptInfo ? ` ${promptInfo }\n ${msgTitle } ` : msgTitle
2130
2130
this .askCopilot (
2131
- ` ${this .$tc (' common .promptError' )}\n\`\`\` ${sendMsg }\`\`\`\n ${this .$tc (' common .myConnectionInfo' )} ` ,
2131
+ ` ${this .$tc (' copilot .promptError' )}\n\`\`\` ${sendMsg }\`\`\`\n ${this .$tc (' copilot .myConnectionInfo' )} ` ,
2132
2132
)
2133
2133
notify .close ()
2134
2134
callback ?.()
You can’t perform that action at this time.
0 commit comments