summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/srmm.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-10-02 20:42:44 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-10-02 20:42:44 +0300
commit7a948f1ef804ecd9971b0869e0591c22944fa6da (patch)
treecdc2df2e2d5f186da4b8778b4e1c9e79013ff921 /plugins/Scriver/src/srmm.cpp
parent9fe4e9044069e70b3f0e1df0e187f5ea43805ea1 (diff)
merge with SrmmLogContainer
Diffstat (limited to 'plugins/Scriver/src/srmm.cpp')
-rw-r--r--plugins/Scriver/src/srmm.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/plugins/Scriver/src/srmm.cpp b/plugins/Scriver/src/srmm.cpp
index cb054873c2..b687894c75 100644
--- a/plugins/Scriver/src/srmm.cpp
+++ b/plugins/Scriver/src/srmm.cpp
@@ -54,7 +54,6 @@ CMPlugin::CMPlugin() :
bTypingNew(SRMM_MODULE, "DefaultTyping", 1),
bAutoClose(SRMM_MODULE, "AutoClose", 0),
bAutoPopup(SRMM_MODULE, "AutoPopupMsg", 0),
- bUseIeview(SRMM_MODULE, "UseIEView", 1),
bSaveDrafts(SRMM_MODULE, "SaveDrafts", 0),
bTypingUnknown(SRMM_MODULE, "UnknownTyping", 0),
bHideContainer(SRMM_MODULE, "HideContainers", 0),
@@ -125,6 +124,17 @@ int CMPlugin::Load()
if (IsWinVer7Plus())
CoCreateInstance(CLSID_TaskbarList, nullptr, CLSCTX_ALL, IID_ITaskbarList3, (void**)&pTaskbarInterface);
+ hLogger = RegisterSrmmLog("built-in", L"Scriver internal log", &logBuilder);
+
+ switch (getByte("UseIEView", -1)) {
+ case 1:
+ setString("Logger", "ieview");
+ __fallthrough;
+
+ case 0:
+ delSetting("UseIEView");
+ }
+
return OnLoadModule();
}
@@ -132,6 +142,7 @@ int CMPlugin::Load()
int CMPlugin::Unload()
{
+ UnregisterSrmmLog(hLogger);
if (pTaskbarInterface)
pTaskbarInterface->Release();
return OnUnloadModule();