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/TabSRMM/src | |
parent | 49c1cd8e49395fdd10050c176df63a4c548deb87 (diff) |
fixes #3625 (Скрывать настройки шрифтов и цветов встроенного журнала плагина сообщений, если в качестве журнала выбран сторонний журнал)
Diffstat (limited to 'plugins/TabSRMM/src')
-rw-r--r-- | plugins/TabSRMM/src/chat_options.cpp | 8 | ||||
-rw-r--r-- | plugins/TabSRMM/src/msgoptions.cpp | 8 |
2 files changed, 10 insertions, 6 deletions
diff --git a/plugins/TabSRMM/src/chat_options.cpp b/plugins/TabSRMM/src/chat_options.cpp index 40c2c9ca4e..0294bb5c45 100644 --- a/plugins/TabSRMM/src/chat_options.cpp +++ b/plugins/TabSRMM/src/chat_options.cpp @@ -895,9 +895,11 @@ void Chat_Options(WPARAM wParam) odp.pDialog = new CChatSettingsDlg();
g_plugin.addOptions(wParam, &odp);
- odp.szTab.a = LPGEN("Log formatting");
- odp.pDialog = new CChatLogOptionDlg();
- g_plugin.addOptions(wParam, &odp);
+ if (!Chat::bEnableCustomLogs) {
+ odp.szTab.a = LPGEN("Log formatting");
+ odp.pDialog = new CChatLogOptionDlg();
+ g_plugin.addOptions(wParam, &odp);
+ }
odp.szTab.a = LPGEN("Highlighting");
odp.pDialog = new CHighlighOptionDlg();
diff --git a/plugins/TabSRMM/src/msgoptions.cpp b/plugins/TabSRMM/src/msgoptions.cpp index 6da1cec94f..ab56521362 100644 --- a/plugins/TabSRMM/src/msgoptions.cpp +++ b/plugins/TabSRMM/src/msgoptions.cpp @@ -1480,9 +1480,11 @@ int OptInitialise(WPARAM wParam, LPARAM lParam) odp.pDialog = new COptContainersDlg();
g_plugin.addOptions(wParam, &odp);
- odp.szTab.a = LPGEN("Message log");
- odp.pDialog = new COptLogDlg();
- g_plugin.addOptions(wParam, &odp);
+ if (!Srmm_IsCustomLogUsed()) {
+ odp.szTab.a = LPGEN("Message log");
+ odp.pDialog = new COptLogDlg();
+ g_plugin.addOptions(wParam, &odp);
+ }
odp.szTab.a = LPGEN("Advanced tweaks");
odp.pDialog = new COptAdvancedDlg();
|