Skip to content

Commit a9191cf

Browse files
authored
Merge pull request #568 from wpferguson/fix_script_manager_startup_button_states
Fix script_manager startup power button state
2 parents e070a14 + 59b5039 commit a9191cf

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tools/script_manager.lua

+8-1
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,13 @@ end
599599
local function start_scripts()
600600
for _, script in ipairs(sm.start_queue) do
601601
activate(script)
602+
for i = 1, sm.page_status.num_buttons do
603+
local name = script.metadata and script.metadata.name or script.name
604+
if sm.widgets.labels[i].label == name then
605+
sm.widgets.buttons[i].name = "pb_on"
606+
break
607+
end
608+
end
602609
end
603610
sm.start_queue = {}
604611
end
@@ -833,7 +840,6 @@ local function scan_repositories()
833840
end
834841
end
835842

836-
start_scripts()
837843
update_script_update_choices()
838844

839845
restore_log_level(old_log_level)
@@ -1224,6 +1230,7 @@ local function install_module()
12241230
log.msg(log.debug, "set run to true, loading preferences")
12251231
load_preferences()
12261232
scan_repositories()
1233+
start_scripts()
12271234

12281235
restore_log_level(old_log_level)
12291236
end

0 commit comments

Comments
 (0)