File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 599599local 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 = {}
604611end
@@ -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 )
12291236end
You can’t perform that action at this time.
0 commit comments