From 41ee395da7530c17656bd06f84638ab8d9d3776d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 20 May 2018 23:36:07 +0300 Subject: options API unbound from hLangpack and switched to CMPlugin --- plugins/Weather/src/weather_opt.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/Weather/src') diff --git a/plugins/Weather/src/weather_opt.cpp b/plugins/Weather/src/weather_opt.cpp index 0d611997e2..ae739f5012 100644 --- a/plugins/Weather/src/weather_opt.cpp +++ b/plugins/Weather/src/weather_opt.cpp @@ -581,13 +581,13 @@ int OptInit(WPARAM wParam, LPARAM) odp.szTitle.a = WEATHERPROTOTEXT; odp.szTab.a = LPGEN("General"); odp.flags = ODPF_BOLDGROUPS; - Options_AddPage(wParam, &odp); + g_plugin.addOptions(wParam, &odp); // text options odp.pszTemplate = MAKEINTRESOURCEA(IDD_TEXTOPT); odp.pfnDlgProc = DlgProcText; odp.szTab.a = LPGEN("Display"); - Options_AddPage(wParam, &odp); + g_plugin.addOptions(wParam, &odp); // if popup service exists, load the weather popup options if ((ServiceExists(MS_POPUP_ADDPOPUPT))) { @@ -596,7 +596,7 @@ int OptInit(WPARAM wParam, LPARAM) odp.szGroup.a = LPGEN("Popups"); odp.szTab.a = nullptr; odp.pfnDlgProc = DlgPopupOpts; - Options_AddPage(wParam, &odp); + g_plugin.addOptions(wParam, &odp); } return 0; -- cgit v1.2.3