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

23
LINES

< > BotCompany Repo | #1031015 // Add "Backup concepts" command to module title menus

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

Uses 1113K of libraries. Click here for Pure Java version (7494L/36K).

1  
!7
2  
3  
cmodule2 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  
      // TODO: use dbProgramID
12  
      S dbID = dm_moduleSnippetID(mod);
13  
      
14  
      if (!fileExists(conceptsFile(dbID))) ret;
15  
      
16  
      addMenuItem(menu, "Backup concepts", rThread {
17  
        File f = backupOtherProgramsConceptsNow(dbID);
18  
        infoBox(f == null ? "No backup made"
19  
          : renderFileInfo(f));
20  
      });
21  
    });
22  
  }
23  
}

Author comment

Began life as a copy of #1029567

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031015
Snippet name: Add "Backup concepts" command to module title menus
Eternal ID of this version: #1031015/4
Text MD5: f897ef893ff84dae8bfb13901a54ca72
Transpilation MD5: d5a6850a47493e227a8169ed32b974e3
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: 2021-04-21 16:10:19
Source code size: 576 bytes / 23 lines
Pitched / IR pitched: No / No
Views / Downloads: 168 / 174042
Version history: 3 change(s)
Referenced in: [show references]