diff options
author | George Hazan <ghazan@miranda.im> | 2019-10-02 20:42:44 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-10-02 20:42:44 +0300 |
commit | 7a948f1ef804ecd9971b0869e0591c22944fa6da (patch) | |
tree | cdc2df2e2d5f186da4b8778b4e1c9e79013ff921 /plugins/Scriver/src/srmm.cpp | |
parent | 9fe4e9044069e70b3f0e1df0e187f5ea43805ea1 (diff) |
merge with SrmmLogContainer
Diffstat (limited to 'plugins/Scriver/src/srmm.cpp')
-rw-r--r-- | plugins/Scriver/src/srmm.cpp | 13 |
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();
|