Skip to content

Commit

Permalink
Merge pull request #734 from Ikaros-521/owner
Browse files Browse the repository at this point in the history
修复 联动程序无法禁用的bug
  • Loading branch information
Ikaros-521 committed Mar 27, 2024
2 parents 8552ed1 + c1e93b8 commit 15d88d1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,9 @@ def start_programs():
global config

for program in config.get("coordination_program"):
if program["enable"] == False:
continue

name = program["name"]
executable = program["executable"] # Python 解释器的路径
app_path = program["parameters"][0] # 假设第一个参数总是 app.py 的路径
Expand Down Expand Up @@ -281,6 +284,9 @@ def stop_programs():
global config

for program in config.get("coordination_program"):
if program["enable"] == False:
continue

stop_program(program["name"])

stop_program("main")
Expand Down

0 comments on commit 15d88d1

Please sign in to comment.