diff options
author | George Hazan <george.hazan@gmail.com> | 2023-08-09 13:22:54 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-08-09 13:22:54 +0300 |
commit | 002cd89c27ead6c16027a51a4314c7e766f0bb18 (patch) | |
tree | ad4f0f4bd9d00b966659b8eca32446b290027df2 /plugins/Scriver/src | |
parent | 49c1cd8e49395fdd10050c176df63a4c548deb87 (diff) |
fixes #3625 (Скрывать настройки шрифтов и цветов встроенного журнала плагина сообщений, если в качестве журнала выбран сторонний журнал)
Diffstat (limited to 'plugins/Scriver/src')
-rw-r--r-- | plugins/Scriver/src/chat_options.cpp | 8 | ||||
-rw-r--r-- | plugins/Scriver/src/msgoptions.cpp | 8 |
2 files changed, 10 insertions, 6 deletions
diff --git a/plugins/Scriver/src/chat_options.cpp b/plugins/Scriver/src/chat_options.cpp index df21a3b7bf..2c1a041325 100644 --- a/plugins/Scriver/src/chat_options.cpp +++ b/plugins/Scriver/src/chat_options.cpp @@ -363,7 +363,9 @@ void ChatOptInitialize(WPARAM wParam) odp.szTab.a = LPGEN("General");
g_plugin.addOptions(wParam, &odp);
- odp.pDialog = new CLogOptsDlg();
- odp.szTab.a = LPGEN("Log formatting");
- g_plugin.addOptions(wParam, &odp);
+ if (!Chat::bEnableCustomLogs) {
+ odp.pDialog = new CLogOptsDlg();
+ odp.szTab.a = LPGEN("Log formatting");
+ g_plugin.addOptions(wParam, &odp);
+ }
}
diff --git a/plugins/Scriver/src/msgoptions.cpp b/plugins/Scriver/src/msgoptions.cpp index 3ffb686ae7..b51cddc4fa 100644 --- a/plugins/Scriver/src/msgoptions.cpp +++ b/plugins/Scriver/src/msgoptions.cpp @@ -805,9 +805,11 @@ int OptInitialise(WPARAM wParam, LPARAM) odp.szTab.a = LPGEN("Layout");
g_plugin.addOptions(wParam, &odp);
- odp.pDialog = new CLogOptionsDlg();
- odp.szTab.a = LPGEN("Event log");
- g_plugin.addOptions(wParam, &odp);
+ if (!Srmm_IsCustomLogUsed()) {
+ odp.pDialog = new CLogOptionsDlg();
+ odp.szTab.a = LPGEN("Event log");
+ g_plugin.addOptions(wParam, &odp);
+ }
////////////////////////////////////////////////////////////////////////////////////////
odp.szGroup.a = LPGEN("Message sessions");
|