svoid doPreferredComputerShutDown() { S s = trim(loadTextFile(preferredShutDownMethodFile())); if (empty(s)) infoBox("No shut down method set."); else if "Power Off" cleanPowerOff(); else if "Suspend to RAM" suspendToRAM(); else if "Suspend to disk" suspendToDisk(); else if "Never shut down" infoBox("Never shut down!"); else infoBox("Unknown shut down method: " + s); }
download show line numbers debug dex old transpilations
Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020007 |
Snippet name: | doPreferredComputerShutDown |
Eternal ID of this version: | #1020007/1 |
Text MD5: | 75c341b130f02606d68fffd3df375154 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-12-03 23:03:32 |
Source code size: | 423 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 314 / 325 |
Referenced in: | [show references] |