!7 cmodule2 AutoReloadButtons > DynPrintLogAndEnabled { switchable int delay = 5; // seconds start { dm_onSnippetTranspiled(voidfunc(S snippetID) { if (!enabled) ret; if (empty(dm_modulesWithSnippetID(snippetID))) ret; dm_action("Reloading module " + snippetID + " in " + delay + "...", r { sleepSeconds(delay); dm_reloadAllModulesWithSnippetID(snippetID); }); }); } bool warnOnDelete() { true; } }