Save Lua script file origin (for later updates) -- GUI+Session plugin

This commit is contained in:
Robin Gareus 2017-02-24 16:08:46 +01:00
parent 24f070610c
commit b83ea5bd49
1 changed files with 3 additions and 0 deletions

View File

@ -1197,6 +1197,9 @@ LuaInstance::interactive_add (LuaScriptInfo::ScriptType type, int id)
return false;
}
LuaScriptParamPtr lspp (new LuaScriptParam("x-script-origin", "", spi->path, false));
lsp.push_back (lspp);
switch (type) {
case LuaScriptInfo::EditorAction:
return set_lua_action (id, spd.name(), script, lsp);