Uses 1113K of libraries. Click here for Pure Java version (8228L/40K).
1 | !7 |
2 | |
3 | cmodule AutoReloadButtons > DynPrintLogAndEnabled { |
4 | transient bool _startMinimized = true; |
5 | double delay = 10; |
6 | |
7 | start { |
8 | dm_onSnippetTranspiled(voidfunc(S snippetID) { |
9 | if (!enabled || !sameSnippetID(snippetID, dm_osSnippetID())) ret; |
10 | fS msg = "Upgrading OS in " + delay + " seconds..."; |
11 | dm_action(msg, r { |
12 | temp tempInfoBox_noPrint(msg); |
13 | sleepSeconds(delay); |
14 | dm_restartOS(); |
15 | }); |
16 | }); |
17 | } |
18 | } |
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: | 346 / 72945 |
Version history: | 5 change(s) |
Referenced in: | [show references] |