MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / onExecute

Method onExecute

src/app/commands/cmd_open_scripts_folder.cpp:41–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void OpenScriptsFolder::onExecute(Context* context)
42{
43 ResourceFinder rf;
44 rf.includeUserDir(base::join_path("scripts", ".").c_str());
45 std::string scriptsDir = rf.getFirstOrCreateDefault();
46 launcher::open_folder(scriptsDir);
47}
48
49Command* CommandFactory::createOpenScriptsFolderCommand()
50{

Callers

nothing calls this directly

Calls 4

join_pathFunction · 0.85
includeUserDirMethod · 0.80
open_folderFunction · 0.50

Tested by

no test coverage detected