Uses 911K of libraries. Click here for Pure Java version (5647L/27K).
1 | !7 |
2 | |
3 | cmodule ModuleCmds > DynPrintLogAndEnabled {
|
4 | bool _startMinimized() { true; }
|
5 | |
6 | start {
|
7 | dm_onAnyModulePopupMenu(voidfunc(JPopupMenu menu, S mod) {
|
8 | if (!enabled) ret; |
9 | temp enter(); |
10 | |
11 | addMenuItem(menu, "Close", rThread { dm_delete(mod) });
|
12 | }); |
13 | } |
14 | } |
Began life as a copy of #1027868
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1029567 |
| Snippet name: | Add "Close" command to module title menus |
| Eternal ID of this version: | #1029567/3 |
| Text MD5: | 9024fba51953e420ed26827e52ec54e8 |
| Transpilation MD5: | e7e5ad4f00a57c2d9e7a268079155b39 |
| Author: | stefan |
| Category: | javax / stefan's os |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-08-24 11:56:30 |
| Source code size: | 300 bytes / 14 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 436 / 219543 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |