diff options
Diffstat (limited to 'protocols/Tox/src/tox_menus.cpp')
-rw-r--r-- | protocols/Tox/src/tox_menus.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/protocols/Tox/src/tox_menus.cpp b/protocols/Tox/src/tox_menus.cpp index c7c77ba163..565a66e4c2 100644 --- a/protocols/Tox/src/tox_menus.cpp +++ b/protocols/Tox/src/tox_menus.cpp @@ -75,20 +75,9 @@ void CToxProto::UninitMenus() int CToxProto::OnInitStatusMenu()
{
- HGENMENU hStatusMenuRoot = Menu_GetProtocolRoot(m_szModuleName);
- if (!hStatusMenuRoot)
- {
- CMenuItem mi;
- mi.name.t = m_tszUserName;
- mi.position = -1999901006;
- mi.flags = CMIF_TCHAR | CMIF_KEEPUNTRANSLATED;
- mi.hIcolibItem = Skin_GetIconHandle("main");
- hStatusMenuRoot = Menu_AddProtoMenuItem(&mi);
- }
-
CMenuItem mi;
mi.flags = CMIF_TCHAR;
- mi.root = hStatusMenuRoot;
+ mi.root = Menu_GetProtocolRoot(this);
// Create copy tox id command
mi.pszService = "/CopyToxID";
|