From ee23690fa6c847a5284f8145e73328cdaab2b617 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 21 Nov 2023 19:01:35 +0300 Subject: SRMM toolbar buttons that require input window to be visible are marked as BBBF_NOREADONLY --- plugins/PasteIt/src/PasteIt.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'plugins/PasteIt') diff --git a/plugins/PasteIt/src/PasteIt.cpp b/plugins/PasteIt/src/PasteIt.cpp index 3c2fdf7df8..ca180f5c48 100644 --- a/plugins/PasteIt/src/PasteIt.cpp +++ b/plugins/PasteIt/src/PasteIt.cpp @@ -282,14 +282,14 @@ void DefWebPageChanged() static void InitTabsrmmButton() { - BBButton btn = {}; - btn.dwButtonID = 1; - btn.pszModuleName = MODULENAME; - btn.dwDefPos = 110; - btn.hIcon = iconList[0].hIcolib; - btn.bbbFlags = BBBF_ISARROWBUTTON | BBBF_ISIMBUTTON | BBBF_CANBEHIDDEN | BBBF_ISCHATBUTTON; - btn.pwszTooltip = TranslateT("Paste It"); - Srmm_AddButton(&btn, &g_plugin); + BBButton bbd = {}; + bbd.dwButtonID = 1; + bbd.pszModuleName = MODULENAME; + bbd.dwDefPos = 110; + bbd.hIcon = iconList[0].hIcolib; + bbd.bbbFlags = BBBF_ISARROWBUTTON | BBBF_ISIMBUTTON | BBBF_CANBEHIDDEN | BBBF_ISCHATBUTTON | BBBF_NOREADONLY; + bbd.pwszTooltip = TranslateT("Paste It"); + g_plugin.addButton(&bbd); if (hTabsrmmButtonPressed != nullptr) UnhookEvent(hTabsrmmButtonPressed); -- cgit v1.2.3