1 | svoid doPreferredComputerShutDown() { |
2 | S s = trim(loadTextFile(preferredShutDownMethodFile())); |
3 | if (empty(s)) |
4 | infoBox("No shut down method set."); |
5 | else if "Power Off" |
6 | cleanPowerOff(); |
7 | else if "Suspend to RAM" |
8 | suspendToRAM(); |
9 | else if "Suspend to disk" |
10 | suspendToDisk(); |
11 | else if "Never shut down" |
12 | infoBox("Never shut down!"); |
13 | else |
14 | infoBox("Unknown shut down method: " + s); |
15 | } |
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: | 317 / 329 |
Referenced in: | [show references] |