Skip to content
代码片段 群组 项目
提交 9440fa9c 编辑于 作者: Timotej Ecimovic's avatar Timotej Ecimovic
浏览文件

Properly open the generate dialog into the same directory as before.

上级 88607deb
No related branches found
No related tags found
无相关合并请求
{
"type": "commonjs",
"name": "zap",
"version": "2022.2.22",
"version": "2022.2.25",
"description": "Configuration tool for the Zigbee Cluster Library",
"productName": "zap",
"cordovaId": "",
......
......@@ -61,7 +61,10 @@ function openFileConfiguration(
* @param {*} httpPort
* @param {*} options: uiMode, debugNavBar
*/
async function openNewConfiguration(httpPort: number, options?: WindowCreateArgs) {
async function openNewConfiguration(
httpPort: number,
options?: WindowCreateArgs
) {
window.windowCreate(httpPort, options)
}
......@@ -103,6 +106,7 @@ function openFileDialogAndReportResult(
} else if (options.mode == 'directory') {
p.properties = ['openDirectory']
}
p.defaultPath = options.defaultPath
dialog.showOpenDialog(browserWindow, p).then((result) => {
if (!result.canceled) {
let output = {
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册