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

!7

cmodule2 ModuleCmds > DynPrintLogAndEnabled {
  bool _startMinimized() { true; }
  
  start {
    dm_onAnyModulePopupMenu(voidfunc(JPopupMenu menu, S mod) {
      if (!enabled) ret;
      temp enter();
      
      // TODO: use dbProgramID
      S dbID = dm_moduleSnippetID(mod);
      
      if (!fileExists(conceptsFile(dbID))) ret;
      
      addMenuItem(menu, "Backup concepts", rThread {
        File f = backupOtherProgramsConceptsNow(dbID);
        infoBox(f == null ? "No backup made"
          : renderFileInfo(f));
      });
    });
  }
}

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: 114 / 139225
Version history: 3 change(s)
Referenced in: [show references]