diff options
Diffstat (limited to 'plugins/IgnoreState/src')
-rw-r--r-- | plugins/IgnoreState/src/main.cpp | 4 | ||||
-rw-r--r-- | plugins/IgnoreState/src/options.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/IgnoreState/src/main.cpp b/plugins/IgnoreState/src/main.cpp index deac722df5..6923074d1e 100644 --- a/plugins/IgnoreState/src/main.cpp +++ b/plugins/IgnoreState/src/main.cpp @@ -107,9 +107,9 @@ static IconItem iconList[] = VOID fill_filter(void)
{
- bUseMirandaSettings = db_get_b(NULL, MODULENAME, "UseMirandaSettings", 0);
+ bUseMirandaSettings = g_plugin.getByte("UseMirandaSettings", 0);
- currentFilter = bUseMirandaSettings ? db_get_dw(NULL, "Ignore", "Default1", 0) : db_get_dw(NULL, MODULENAME, "Filter", 0x8);
+ currentFilter = bUseMirandaSettings ? db_get_dw(0, "Ignore", "Default1", 0) : g_plugin.getDword("Filter", 0x8);
for (int i = 0; i < _countof(ii); i++) {
if (checkState((ii[i].type)))
diff --git a/plugins/IgnoreState/src/options.cpp b/plugins/IgnoreState/src/options.cpp index 78da3941d2..3dc51d64a8 100644 --- a/plugins/IgnoreState/src/options.cpp +++ b/plugins/IgnoreState/src/options.cpp @@ -84,10 +84,10 @@ INT_PTR CALLBACK DlgProcOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP if (TreeView_GetCheckState(hTree, tvi.hItem)) flags |= 1 << (tvi.lParam - 1);
tvi.hItem = TreeView_GetNextSibling(hTree, tvi.hItem);
}
- db_set_dw(NULL, MODULENAME, "Filter", flags);
+ g_plugin.setDword("Filter", flags);
bUseMirandaSettings = IsDlgButtonChecked(hwndDlg, IDC_IGNORE_IGNOREALL) ? 1 : 0;
- db_set_b(NULL, MODULENAME, "UseMirandaSettings", bUseMirandaSettings);
+ g_plugin.setByte("UseMirandaSettings", bUseMirandaSettings);
fill_filter();
}
|