Adding logic to the autoload if statement so it only fire if the module is being loaded.

This commit is contained in:
Micheal Quinn 2018-04-18 09:12:17 -05:00 committed by Massimiliano Culpo
parent 3301e21f06
commit d163be6a13

View File

@ -23,7 +23,7 @@ proc ModulesHelp { } {
{% block autoloads %}
{% for module in autoload %}
if ![ is-loaded {{ module }} ] {{ '{' }}
if { [ module-info mode load ] && ![ is-loaded {{ module }} ] } {{ '{' }}
{% if verbose %}
puts stderr "Autoloading {{ module }}"
{% endif %}