From 002cd89c27ead6c16027a51a4314c7e766f0bb18 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 9 Aug 2023 13:22:54 +0300 Subject: =?UTF-8?q?fixes=20#3625=20(=D0=A1=D0=BA=D1=80=D1=8B=D0=B2=D0=B0?= =?UTF-8?q?=D1=82=D1=8C=20=D0=BD=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B9=D0=BA?= =?UTF-8?q?=D0=B8=20=D1=88=D1=80=D0=B8=D1=84=D1=82=D0=BE=D0=B2=20=D0=B8=20?= =?UTF-8?q?=D1=86=D0=B2=D0=B5=D1=82=D0=BE=D0=B2=20=D0=B2=D1=81=D1=82=D1=80?= =?UTF-8?q?=D0=BE=D0=B5=D0=BD=D0=BD=D0=BE=D0=B3=D0=BE=20=D0=B6=D1=83=D1=80?= =?UTF-8?q?=D0=BD=D0=B0=D0=BB=D0=B0=20=D0=BF=D0=BB=D0=B0=D0=B3=D0=B8=D0=BD?= =?UTF-8?q?=D0=B0=20=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D0=B9?= =?UTF-8?q?,=20=D0=B5=D1=81=D0=BB=D0=B8=20=D0=B2=20=D0=BA=D0=B0=D1=87?= =?UTF-8?q?=D0=B5=D1=81=D1=82=D0=B2=D0=B5=20=D0=B6=D1=83=D1=80=D0=BD=D0=B0?= =?UTF-8?q?=D0=BB=D0=B0=20=D0=B2=D1=8B=D0=B1=D1=80=D0=B0=D0=BD=20=D1=81?= =?UTF-8?q?=D1=82=D0=BE=D1=80=D0=BE=D0=BD=D0=BD=D0=B8=D0=B9=20=D0=B6=D1=83?= =?UTF-8?q?=D1=80=D0=BD=D0=B0=D0=BB)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/TabSRMM/src/chat_options.cpp | 8 +++++--- plugins/TabSRMM/src/msgoptions.cpp | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) (limited to 'plugins/TabSRMM/src') 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(); -- cgit v1.2.3