Uses 1113K of libraries. Click here for Pure Java version (8228L/40K).
!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(); }); }); } }
Began life as a copy of #1020070
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020441 |
Snippet name: | Auto-Upgrade OS |
Eternal ID of this version: | #1020441/6 |
Text MD5: | 52ae79f54f65b0c263876382f92d3c79 |
Transpilation MD5: | 18860e2c0b36697375dfc2127d58abab |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-02-19 15:37:25 |
Source code size: | 470 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 345 / 72943 |
Version history: | 5 change(s) |
Referenced in: | [show references] |