Skip to content

Commit 568deef

Browse files
committed
fix(desktop): remove some comments
1 parent 796820e commit 568deef

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/background.ts

-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ async function createWindow() {
177177
icon: `${__static}/app.ico`,
178178
})
179179

180-
// 初始化 @electron/remote
181180
initialize()
182181
if (win) {
183182
require('@electron/remote/main').enable(win.webContents)

src/utils/logger.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import log4js from 'log4js'
22
import { app } from 'electron'
3-
// 根据进程类型分别导入不同的 remote 模块
3+
4+
// Determine if we're in renderer process and import appropriate app module
45
const isRenderer = process.type === 'renderer'
5-
// 渲染进程使用 @electron/remote
6-
// 主进程使用 electron 的 app 模块
6+
// Use @electron/remote for renderer process, direct app module for main process
77
const electronApp = isRenderer ? require('@electron/remote').app : app
8+
89
import fs from 'fs-extra'
910
import path from 'path'
1011

src/views/connections/ConnectionsDetail.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -2128,7 +2128,7 @@ export default class ConnectionsDetail extends Vue {
21282128
button.addEventListener('click', () => {
21292129
const sendMsg = promptInfo ? `${promptInfo}\n${msgTitle}` : msgTitle
21302130
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')}`,
21322132
)
21332133
notify.close()
21342134
callback?.()

0 commit comments

Comments
 (0)