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/QuickReplies | |
parent | a455124c53674338f581a1970768182223c3a49a (diff) |
SRMM toolbar buttons that require input window to be visible are marked as BBBF_NOREADONLY
Diffstat (limited to 'plugins/QuickReplies')
-rw-r--r-- | plugins/QuickReplies/src/events.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/QuickReplies/src/events.cpp b/plugins/QuickReplies/src/events.cpp index 5865a6298c..784bb51d72 100644 --- a/plugins/QuickReplies/src/events.cpp +++ b/plugins/QuickReplies/src/events.cpp @@ -39,13 +39,13 @@ int OnModulesLoaded(WPARAM, LPARAM) mir_snprintf(buttonName, MODULENAME" %x", iNumber + 1);
BBButton bbd = {};
- bbd.bbbFlags = BBBF_ISIMBUTTON | BBBF_ISCHATBUTTON;
+ bbd.bbbFlags = BBBF_ISIMBUTTON | BBBF_ISCHATBUTTON | BBBF_NOREADONLY;
bbd.pszModuleName = buttonName;
bbd.pwszTooltip = LPGENW("Quick Replies");
bbd.hIcon = iconList[0].hIcolib;
bbd.dwButtonID = iNumber;
bbd.dwDefPos = 220;
- Srmm_AddButton(&bbd, &g_plugin);
+ g_plugin.addButton(&bbd);
return 0;
}
|