Skip to content

Commit 00687e7

Browse files
committed
优化:打开开发者调试默认为激活状态
1 parent 6ce4589 commit 00687e7

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
- 修复:插件管理左侧溢出样式异常问题
44
- 优化:插件发布错误提醒增加错误码
5+
- 优化:打开开发者调试默认为激活状态
56

67
## v0.2.0
78

electron/mapi/manager/window/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ export const ManagerWindow = {
282282
} else {
283283
mainWindowView.webContents.openDevTools({
284284
mode: 'detach',
285-
activate: false,
285+
activate: true,
286286
title: `MainPluginView`,
287287
})
288288
}
@@ -494,7 +494,7 @@ export const ManagerWindow = {
494494
async openDetachPluginDevTools(view: BrowserView, option?: {}) {
495495
view.webContents.openDevTools({
496496
mode: 'detach',
497-
activate: false,
497+
activate: true,
498498
title: `DetachView.${view._plugin.name}`,
499499
})
500500
}

sdk/config.schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,11 @@
240240
},
241241
"keepCodeDevTools": {
242242
"type": "boolean",
243-
"description": "是否在code执行完成后保留开发者窗口(便于调试)"
243+
"description": "插件是否在code执行完成后保留开发者窗口"
244244
},
245245
"showFastPanelDevTools": {
246246
"type": "boolean",
247-
"description": "是否在view中显示开发者窗口(便于调试)"
247+
"description": "是否在快捷面板渲染view时显示开发者窗口"
248248
}
249249
}
250250
},

0 commit comments

Comments
 (0)