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/AutoShutdown/src/options.cpp | 2 +- plugins/AutoShutdown/src/settingsdlg.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/AutoShutdown/src') diff --git a/plugins/AutoShutdown/src/options.cpp b/plugins/AutoShutdown/src/options.cpp index df9cc47f9b..cf06e45ce7 100644 --- a/plugins/AutoShutdown/src/options.cpp +++ b/plugins/AutoShutdown/src/options.cpp @@ -114,7 +114,7 @@ static int ShutdownOptInit(WPARAM wParam, LPARAM) odp.szTab.w = LPGENW("Automatic shutdown"); /* autotranslated, can be made a tab */ odp.flags = ODPF_BOLDGROUPS | ODPF_UNICODE; odp.pfnDlgProc = ShutdownOptDlgProc; - Options_AddPage(wParam, &odp); + g_plugin.addOptions(wParam, &odp); return 0; } diff --git a/plugins/AutoShutdown/src/settingsdlg.cpp b/plugins/AutoShutdown/src/settingsdlg.cpp index 2c82d7d4df..e54ef15296 100644 --- a/plugins/AutoShutdown/src/settingsdlg.cpp +++ b/plugins/AutoShutdown/src/settingsdlg.cpp @@ -323,7 +323,7 @@ static INT_PTR CALLBACK SettingsDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, L break; case IDC_URL_IDLE: - Options_Open(L"Status", L"Idle"); + g_plugin.openOptions(L"Status", L"Idle"); return TRUE; case IDC_COMBO_SHUTDOWNTYPE: -- cgit v1.2.3