Fix and improve currentAPI.js
Showing the changes to interface/src/Menu.cpp (1 of 4 files). Show all
Unified · Split
| @@ -758,6 +758,14 @@ Menu::Menu() { · 757 unmodified lines | ||
| 758 | 758 | // Developer > Stats |
| 759 | 759 | addCheckableActionToQMenuAndActionHash(developerMenu, MenuOption::Stats); |
| 760 | 760 | |
| 761 | + // Developer > API Debugger | |
| 762 | + action = addActionToQMenuAndActionHash(developerMenu, "API Debugger"); | |
| 763 | + connect(action, &QAction::triggered, [] { | |
| 764 | + auto scriptEngines = DependencyManager::get<ScriptEngines>(); | |
| 765 | + QUrl defaultScriptsLoc = PathUtils::defaultScriptsLocation(); | |
| 766 | + defaultScriptsLoc.setPath(defaultScriptsLoc.path() + "developer/utilities/tools/currentAPI.js"); | |
| 767 | + scriptEngines->loadScript(defaultScriptsLoc.toString()); | |
| 768 | + }); | |
| 761 | 769 | |
| 762 | 770 | #if 0 /// -------------- REMOVED FOR NOW -------------- |
| 763 | 771 | addDisabledActionAndSeparator(navigateMenu, "History"); |