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).

!7

cmodule ConfirmOSExit > DynPrintLogAndEnabled {
  start {
    if (enabled) {
      O confirmer = dm_callOS standardOSExitConfirm();
      if (confirmer == null)
        ret with print("Upgrade OS");
      dm_setOS(confirmOSExit := confirmer);
      print("OS exit confirm on.");
    } else {
      dm_setOS(confirmOSExit := null);
      print("OS exit confirm off.");
    }
  }
}

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: 148 / 312963
Referenced in: [show references]