summaryrefslogtreecommitdiff
path: root/plugins/AsSingleWindow/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-11-12 21:44:56 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-11-12 21:44:56 +0300
commit53fe3e46177d17b4941610de19f5cc6210700cb4 (patch)
treeb67a6bc208dad141f9db14035cd7e42ff2a51872 /plugins/AsSingleWindow/src
parent488214ac8af0c4aeb1a5c1d8fd48368daaf4c4c7 (diff)
db_* functions replaced with g_plugin calls
Diffstat (limited to 'plugins/AsSingleWindow/src')
-rw-r--r--plugins/AsSingleWindow/src/Options.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/AsSingleWindow/src/Options.cpp b/plugins/AsSingleWindow/src/Options.cpp
index 8e7659e79c..3bbabf2c9c 100644
--- a/plugins/AsSingleWindow/src/Options.cpp
+++ b/plugins/AsSingleWindow/src/Options.cpp
@@ -98,8 +98,8 @@ void dlgUpdateControls(HWND hWnd)
void optionsLoad()
{
- pluginVars.Options.DrivenWindowPos = db_get_b(0, MODULENAME, "DrivenWindowPosition", ASW_CLWINDOWPOS_RIGHT);
- pluginVars.Options.WindowsMerging = db_get_b(0, MODULENAME, "WindowsMerging", ASW_WINDOWS_MERGEONE);
+ pluginVars.Options.DrivenWindowPos = g_plugin.getByte("DrivenWindowPosition", ASW_CLWINDOWPOS_RIGHT);
+ pluginVars.Options.WindowsMerging = g_plugin.getByte("WindowsMerging", ASW_WINDOWS_MERGEONE);
}
void optionsUpdate(HWND hWnd)
@@ -117,6 +117,6 @@ void optionsUpdate(HWND hWnd)
void optionsSave()
{
- db_set_b(0, MODULENAME, "DrivenWindowPosition", pluginVars.Options.DrivenWindowPos);
- db_set_b(0, MODULENAME, "WindowsMerging", pluginVars.Options.WindowsMerging);
+ g_plugin.setByte("DrivenWindowPosition", pluginVars.Options.DrivenWindowPos);
+ g_plugin.setByte("WindowsMerging", pluginVars.Options.WindowsMerging);
}