diff options
author | George Hazan <george.hazan@gmail.com> | 2023-11-21 19:01:35 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-11-21 19:01:35 +0300 |
commit | ee23690fa6c847a5284f8145e73328cdaab2b617 (patch) | |
tree | fc9fa53601eb0babccec11021dc9638c07522f9c /plugins/PasteIt | |
parent | a455124c53674338f581a1970768182223c3a49a (diff) |
SRMM toolbar buttons that require input window to be visible are marked as BBBF_NOREADONLY
Diffstat (limited to 'plugins/PasteIt')
-rw-r--r-- | plugins/PasteIt/src/PasteIt.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
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);
|