Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

16
LINES

< > BotCompany Repo | #1025478 // Confirm OS Exit

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (3998L/20K).

1  
!7
2  
3  
cmodule ConfirmOSExit > DynPrintLogAndEnabled {
4  
  start {
5  
    if (enabled) {
6  
      O confirmer = dm_callOS standardOSExitConfirm();
7  
      if (confirmer == null)
8  
        ret with print("Upgrade OS");
9  
      dm_setOS(confirmOSExit := confirmer);
10  
      print("OS exit confirm on.");
11  
    } else {
12  
      dm_setOS(confirmOSExit := null);
13  
      print("OS exit confirm off.");
14  
    }
15  
  }
16  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025478
Snippet name: Confirm OS Exit
Eternal ID of this version: #1025478/1
Text MD5: f676b6be458253636d225428fa914df1
Transpilation MD5: d35e724051e36d216519bda4435f3098
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: 2019-09-29 18:41:50
Source code size: 398 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 243 / 377871
Referenced in: [show references]