From 32089106fa10eba08e946693cb2939a4ab293f77 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Mon, 4 Apr 2016 09:44:12 +0000 Subject: MirLua: - no need to copy pointer data in MT - project cleanup - version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@16584 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/mlua_options.cpp | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'plugins/MirLua/src/mlua_options.cpp') diff --git a/plugins/MirLua/src/mlua_options.cpp b/plugins/MirLua/src/mlua_options.cpp index e7f3ef729f..dce88057d6 100644 --- a/plugins/MirLua/src/mlua_options.cpp +++ b/plugins/MirLua/src/mlua_options.cpp @@ -42,19 +42,6 @@ void CMLuaOptions::CreateLink(CCtrlData& ctrl, const char *szSetting, TCHAR *szV ctrl.CreateDbLink(MODULE, szSetting, szValue); } -int CMLuaOptions::OnOptionsInit(WPARAM wParam, LPARAM) -{ - OPTIONSDIALOGPAGE odp = { 0 }; - odp.flags = ODPF_BOLDGROUPS | ODPF_TCHAR | ODPF_DONTTRANSLATE; - odp.ptszGroup = LPGENT("Services"); - odp.ptszTitle = _T(MODULE); - odp.ptszTab = LPGENT("Scripts"); - odp.pDialog = CMLuaOptions::CreateOptionsPage(); - Options_AddPage(wParam, &odp); - - return 0; -} - void CMLuaOptions::LoadScripts() { for (int i = 0; i < g_mLua->Scripts.getCount(); i++) @@ -175,4 +162,19 @@ void CMLuaOptions::OnReload(CCtrlBase*) g_mLua->Load(); LoadScripts(); isScriptListInit = true; +} + +/****************************************/ + +int CMLuaOptions::OnOptionsInit(WPARAM wParam, LPARAM) +{ + OPTIONSDIALOGPAGE odp = { 0 }; + odp.flags = ODPF_BOLDGROUPS | ODPF_TCHAR | ODPF_DONTTRANSLATE; + odp.ptszGroup = LPGENT("Services"); + odp.ptszTitle = _T("Lua"); + odp.ptszTab = LPGENT("Scripts"); + odp.pDialog = CMLuaOptions::CreateOptionsPage(); + Options_AddPage(wParam, &odp); + + return 0; } \ No newline at end of file -- cgit v1.2.3