Libraryless. Click here for Pure Java version (15233L/105K).
!7 // TODO: doesn't always work module AutoReloadFocusedModule > DynPrintLogAndEnabled { bool verbose; S switchableFields() { ret 'verbose; } start { doEvery(1.0, r { O mod = dm_activeModule(); Container frame = dm_frame(mod); if (verbose) print("Got frame for module " + dm_moduleName(mod) + ": " + (frame != null)); if (containsChildWithShortName(frame, 'dm_ReloadButton)) { print("Auto-reloading " + dm_moduleName(mod)); dm_reloadModule(mod); } }); } }
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: | #1020096 |
Snippet name: | Automatically Reload Focused Module [When Reloadable] |
Eternal ID of this version: | #1020096/10 |
Text MD5: | 14aa2d0735fb860dcb2201657cbcc69e |
Transpilation MD5: | b379ab1f043e56ee5d4311d5f0b1d649 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-12-27 02:07:59 |
Source code size: | 543 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 308 / 21133 |
Version history: | 9 change(s) |
Referenced in: | [show references] |