!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)); }); }); } }