From ba688c1ade0ac44a02294dda3e486469820bb31a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 14 Nov 2018 00:16:27 +0300 Subject: Weather -> g_plugin --- plugins/StartupSilence/src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/StartupSilence/src') diff --git a/plugins/StartupSilence/src/main.cpp b/plugins/StartupSilence/src/main.cpp index 74da60d7f8..174962c21d 100644 --- a/plugins/StartupSilence/src/main.cpp +++ b/plugins/StartupSilence/src/main.cpp @@ -373,22 +373,22 @@ static INT_PTR CALLBACK DlgProcOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LP case IDC_DEFPOPUP: db_set_b(0, MODULENAME, DefPopupComp, (BYTE)(IsDlgButtonChecked(hwndDlg, IDC_DEFPOPUP) == BST_CHECKED ? 1 : 0)); - DefPopup = db_get_b(0, MODULENAME, DefPopupComp, 0); + DefPopup = g_plugin.getByte(DefPopupComp, 0); break; case IDC_DEFSOUNDS: db_set_b(0, MODULENAME, DefSoundComp, (BYTE)(IsDlgButtonChecked(hwndDlg, IDC_DEFSOUNDS) == BST_CHECKED ? 1 : 0)); - DefSound = db_get_b(0, MODULENAME, DefSoundComp, 0); + DefSound = g_plugin.getByte(DefSoundComp, 0); break; case IDC_RESTORE: db_set_b(0, MODULENAME, DefEnabledComp, (BYTE)(IsDlgButtonChecked(hwndDlg, IDC_RESTORE) == BST_CHECKED ? 1 : 0)); - DefEnabled = db_get_b(0, MODULENAME, DefEnabledComp, 0); + DefEnabled = g_plugin.getByte(DefEnabledComp, 0); break; case IDC_NONSTATUSES: db_set_b(0, MODULENAME, NonStatusAllowComp, (BYTE)(IsDlgButtonChecked(hwndDlg, IDC_NONSTATUSES) == BST_CHECKED ? 1 : 0)); - NonStatusAllow = db_get_b(0, MODULENAME, NonStatusAllowComp, 0); + NonStatusAllow = g_plugin.getByte(NonStatusAllowComp, 0); break; case IDC_RESETDEFAULT: -- cgit v1.2.3