Skip to content

Commit 6c0c8f9

Browse files
committed
fix: 修复启动进阶编辑联动
1 parent 056658a commit 6c0c8f9

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎src/script_chainer/gui/page/script_edit_interface.py‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,11 @@ def _sync_launch_method_ui(self, sync_expand: bool = False) -> None:
327327
self.launch_advanced_group.setExpand(True)
328328

329329
def _sync_launch_advanced_summary(self, *_args) -> None:
330-
config = self.get_config_value()
331-
if config.launcher_mode:
332-
target_name = config.script_process_display_name
330+
launcher_mode = self.launcher_mode_switch.isChecked()
331+
target_name = ' / '.join(
332+
normalize_process_names(self.script_process_name_opt.getValue())
333+
)
334+
if launcher_mode:
333335
if target_name:
334336
summary = f'当前会等待启动后的主程序:{target_name}'
335337
else:
@@ -376,6 +378,7 @@ def validate(self) -> bool:
376378
self.launch_advanced_group.setExpand(True)
377379
self.error_label.hide()
378380
return False
381+
self.script_process_name_opt.set_error_message(None)
379382
self.error_label.setText(invalid_message)
380383
self.error_label.show()
381384
return False

0 commit comments

Comments
 (0)