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/FTPFileYM/src/ftpfile.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'plugins/FTPFileYM/src') diff --git a/plugins/FTPFileYM/src/ftpfile.cpp b/plugins/FTPFileYM/src/ftpfile.cpp index f9df1e5591..dbb5921940 100644 --- a/plugins/FTPFileYM/src/ftpfile.cpp +++ b/plugins/FTPFileYM/src/ftpfile.cpp @@ -164,14 +164,14 @@ void InitHotkeys() void InitTabsrmmButton() { - BBButton btn = {}; - btn.dwButtonID = 1; - btn.pszModuleName = MODULENAME; - btn.dwDefPos = 105; - btn.hIcon = g_plugin.getIconHandle(IDI_MENU); - btn.bbbFlags = BBBF_ISARROWBUTTON | BBBF_ISIMBUTTON | BBBF_CANBEHIDDEN; - btn.pwszTooltip = TranslateT("FTP File"); - Srmm_AddButton(&btn, &g_plugin); + BBButton bbd = {}; + bbd.dwButtonID = 1; + bbd.pszModuleName = MODULENAME; + bbd.dwDefPos = 105; + bbd.hIcon = g_plugin.getIconHandle(IDI_MENU); + bbd.bbbFlags = BBBF_ISARROWBUTTON | BBBF_ISIMBUTTON | BBBF_CANBEHIDDEN; + bbd.pwszTooltip = TranslateT("FTP File"); + g_plugin.addButton(&bbd); HookEvent(ME_MSG_BUTTONPRESSED, TabsrmmButtonPressed); } -- cgit v1.2.3