summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/init.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-02-06 18:34:58 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-02-06 18:35:11 +0300
commit8e116c496a0c0310f4621d469b35e46285ba6529 (patch)
treeaab8b662f4dd8933232be3729682ff7dab9ac8e0 /plugins/Clist_modern/src/init.cpp
parentec37daa7578d283929d0504f43d8cdbeddad2a42 (diff)
fixes #1786 (Clist Modern constantly checks if the status message has been updated even if there's no need to do that)
Diffstat (limited to 'plugins/Clist_modern/src/init.cpp')
-rw-r--r--plugins/Clist_modern/src/init.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/plugins/Clist_modern/src/init.cpp b/plugins/Clist_modern/src/init.cpp
index aa7d618efe..7df2165ec6 100644
--- a/plugins/Clist_modern/src/init.cpp
+++ b/plugins/Clist_modern/src/init.cpp
@@ -109,6 +109,31 @@ int CMPlugin::Unload(void)
/////////////////////////////////////////////////////////////////////////////////////////
+void CMPlugin::ReadSettings()
+{
+ wcsncpy_s(secondLine.text, getMStringW("SecondLineText"), _TRUNCATE);
+ secondLine.iType = getWord("SecondLineType", SETTING_SECONDLINE_TYPE_DEFAULT);
+ secondLine.bActive = getBool("SecondLineShow", SETTING_SECONDLINE_SHOW_DEFAULT);
+ secondLine.iTopSpace = getWord("SecondLineTopSpace", SETTING_SECONDLINE_TOPSPACE_DEFAULT);
+ secondLine.bDrawSmilies = getBool("SecondLineDrawSmileys", SETTING_SECONDLINE_SMILEYS_DEFAULT);
+ secondLine.bXstatusHasPriority = getBool("SecondLineXStatusHasPriority", SETTING_SECONDLINE_XSTATUS_DEFAULT);
+ secondLine.bShowStatusIfNoAway = getBool("SecondLineShowStatusIfNoAway", SETTING_SECONDLINE_STATUSIFNOAWAY_DEFAULT);
+ secondLine.bShowListeningIfNoAway = getBool("SecondLineShowListeningIfNoAway", SETTING_SECONDLINE_LISTENINGIFNOAWAY_DEFAULT);
+ secondLine.bUseNameAndMessageForXstatus = getBool("SecondLineUseNameAndMessageForXStatus", SETTING_SECONDLINE_XSTATUSNAMETEXT_DEFAULT);
+
+ wcsncpy_s(thirdLine.text, getMStringW("ThirdLineText"), _TRUNCATE);
+ thirdLine.iType = getWord("ThirdLineType", SETTING_THIRDLINE_TYPE_DEFAULT);
+ thirdLine.bActive = getBool("ThirdLineShow", SETTING_THIRDLINE_SHOW_DEFAULT);
+ thirdLine.iTopSpace = getWord("ThirdLineTopSpace", SETTING_THIRDLINE_TOPSPACE_DEFAULT);
+ thirdLine.bDrawSmilies = getBool("ThirdLineDrawSmileys", SETTING_THIRDLINE_SMILEYS_DEFAULT);
+ thirdLine.bXstatusHasPriority = getBool("ThirdLineXStatusHasPriority", SETTING_THIRDLINE_XSTATUS_DEFAULT);
+ thirdLine.bShowStatusIfNoAway = getBool("ThirdLineShowStatusIfNoAway", SETTING_THIRDLINE_STATUSIFNOAWAY_DEFAULT);
+ thirdLine.bShowListeningIfNoAway = getBool("ThirdLineShowListeningIfNoAway", SETTING_THIRDLINE_LISTENINGIFNOAWAY_DEFAULT);
+ thirdLine.bUseNameAndMessageForXstatus = getBool("ThirdLineUseNameAndMessageForXStatus", SETTING_THIRDLINE_XSTATUSNAMETEXT_DEFAULT);
+}
+
+/////////////////////////////////////////////////////////////////////////////////////////
+
static int cliShowHideStub() { return cliShowHide(false); }
static HRESULT SubclassClistInterface()