!7 cmodule AutoReloadButtons > DynPrintLogAndEnabled { transient bool _startMinimized = true; double delay = 10; start { dm_onSnippetTranspiled(voidfunc(S snippetID) { if (!enabled || !sameSnippetID(snippetID, dm_osSnippetID())) ret; fS msg = "Upgrading OS in " + delay + " seconds..."; dm_action(msg, r { temp tempInfoBox_noPrint(msg); sleepSeconds(delay); dm_restartOS(); }); }); } }