diff options
Diffstat (limited to 'plugins/MirLua')
-rw-r--r-- | plugins/MirLua/src/Modules/m_options.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/MirLua/src/Modules/m_options.cpp b/plugins/MirLua/src/Modules/m_options.cpp index 9a06a28fe5..aefc68a526 100644 --- a/plugins/MirLua/src/Modules/m_options.cpp +++ b/plugins/MirLua/src/Modules/m_options.cpp @@ -116,11 +116,24 @@ int opt_OpenPage(lua_State *L) return 0; } +int opt_Open(lua_State *L) +{ + ptrW group(mir_utf8decodeW(luaL_checkstring(L, 1))); + ptrW page(mir_utf8decodeW(lua_tostring(L, 2))); + ptrW tab(mir_utf8decodeW(lua_tostring(L, 3))); + + g_plugin.openOptions(group, page, tab); + + return 0; +} + static luaL_Reg optionsApi[] = { { "AddPage", opt_AddPage }, { "OpenPage", opt_OpenPage }, + { "Open", opt_Open }, + { nullptr, nullptr } }; |