Skip to content

Commit a4aed87

Browse files
author
noodlefighter
committed
修复“执行动作组”功能,保存配置项失效的问题
1 parent 47639de commit a4aed87

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,9 @@ LabelPlusInput.prototype.createPanel = function (pnl: any, ini: any) {
520520
if (opts.runActionGroup) {
521521
pnl.runActionGroupCheckBox.value = true;
522522
pnl.runActionGroupList.enabled = true;
523-
pnl.runActionGroupList.selection.text = opts.runActionGroup;
523+
let item = pnl.runActionGroupList.find(opts.runActionGroup);
524+
if (item != undefined)
525+
pnl.runActionGroupList.selection = item;
524526
}
525527

526528
// 导入后不关闭文档
@@ -778,7 +780,7 @@ LabelPlusInput.prototype.validatePanel = function (pnl: any, ini: any, tofile: b
778780

779781
// 执行动作GroupN
780782
if (pnl.runActionGroupCheckBox.value)
781-
opts.runActionGroup = pnl.runActionGroupList.selection;
783+
opts.runActionGroup = pnl.runActionGroupList.selection.text;
782784
else
783785
opts.runActionGroup = undefined;
784786

0 commit comments

Comments
 (0)