diff options
author | George Hazan <ghazan@miranda.im> | 2020-07-14 21:12:53 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-07-14 21:12:53 +0300 |
commit | f1cfa0c2d6fd7d03c657b2ccb2baeaaa6f91e283 (patch) | |
tree | 4f6b0f6766e35b06c12f0e310670a39e94abeef2 /plugins/Scriver/src | |
parent | 1fae4081a820eb870e8a9639338ecb4d2f1bde70 (diff) |
fixes #2256 (Scriver: после смены цвета фона пропадает лог конфы)
Diffstat (limited to 'plugins/Scriver/src')
-rw-r--r-- | plugins/Scriver/src/msgdialog.cpp | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp index 6c013d8381..9c68eea85a 100644 --- a/plugins/Scriver/src/msgdialog.cpp +++ b/plugins/Scriver/src/msgdialog.cpp @@ -1087,9 +1087,10 @@ INT_PTR CMsgDialog::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) break;
case DM_OPTIONSAPPLIED:
- GetAvatar();
- SetDialogToType();
- {
+ if (!isChat()) {
+ GetAvatar();
+ SetDialogToType();
+
m_pLog->UpdateOptions();
COLORREF colour = g_plugin.getDword(SRMSGSET_INPUTBKGCOLOUR, SRMSGDEFSET_INPUTBKGCOLOUR);
@@ -1112,14 +1113,14 @@ INT_PTR CMsgDialog::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) cf2.yHeight = abs(lf.lfHeight) * 1440 / g_dat.logPixelSY;
m_message.SendMsg(EM_SETCHARFORMAT, SCF_ALL, (LPARAM)&cf2);
m_message.SendMsg(EM_SETLANGOPTIONS, 0, (LPARAM)m_message.SendMsg(EM_GETLANGOPTIONS, 0, 0) & ~IMF_AUTOKEYBOARD);
- }
- SendMessage(m_hwnd, DM_REMAKELOG, 0, 0);
- UpdateTitle();
- UpdateTabControl();
- UpdateStatusBar();
- m_message.SendMsg(EM_REQUESTRESIZE, 0, 0);
- SetupInfobar();
+ SendMessage(m_hwnd, DM_REMAKELOG, 0, 0);
+ UpdateTitle();
+ UpdateTabControl();
+ UpdateStatusBar();
+ m_message.SendMsg(EM_REQUESTRESIZE, 0, 0);
+ SetupInfobar();
+ }
break;
case DM_ACTIVATE:
|