From 6ed0f28f9288a76e479b916f2e579b1a61ac47fd Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 18 Jan 2024 14:20:19 +0300 Subject: Srmm_IsCustomLogUsed should take the 'forGroupchats' parameter into consideration --- plugins/Scriver/src/chat_options.cpp | 2 +- plugins/Scriver/src/msgoptions.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/Scriver/src') diff --git a/plugins/Scriver/src/chat_options.cpp b/plugins/Scriver/src/chat_options.cpp index 2c1a041325..8785129a98 100644 --- a/plugins/Scriver/src/chat_options.cpp +++ b/plugins/Scriver/src/chat_options.cpp @@ -363,7 +363,7 @@ void ChatOptInitialize(WPARAM wParam) odp.szTab.a = LPGEN("General"); g_plugin.addOptions(wParam, &odp); - if (!Chat::bEnableCustomLogs) { + if (!Srmm_IsCustomLogUsed(true)) { 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 9e60d96540..2ff219b29b 100644 --- a/plugins/Scriver/src/msgoptions.cpp +++ b/plugins/Scriver/src/msgoptions.cpp @@ -805,7 +805,7 @@ int OptInitialise(WPARAM wParam, LPARAM) odp.szTab.a = LPGEN("Layout"); g_plugin.addOptions(wParam, &odp); - odp.pDialog = new CLogOptionsDlg(Srmm_IsCustomLogUsed() ? IDD_OPT_MSGHIST : IDD_OPT_MSGLOG); + odp.pDialog = new CLogOptionsDlg(Srmm_IsCustomLogUsed(false) ? IDD_OPT_MSGHIST : IDD_OPT_MSGLOG); odp.szTab.a = LPGEN("Event log"); g_plugin.addOptions(wParam, &odp); -- cgit v1.2.3