From bfed3d975a2908a5d2688f1dc1b55aa4aa6a9bf7 Mon Sep 17 00:00:00 2001 From: Eugene Lishnevsky Date: Wed, 25 Jul 2012 17:53:52 +0000 Subject: Code cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@1182 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NewXstatusNotify/src/main.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'plugins/NewXstatusNotify/src/main.cpp') diff --git a/plugins/NewXstatusNotify/src/main.cpp b/plugins/NewXstatusNotify/src/main.cpp index 076b49966f..7468555b41 100644 --- a/plugins/NewXstatusNotify/src/main.cpp +++ b/plugins/NewXstatusNotify/src/main.cpp @@ -1303,10 +1303,7 @@ int InitTopToolbar(WPARAM, LPARAM) TTBButton tbb = {0}; tbb.cbSize = sizeof(TTBButton); tbb.pszService = MS_STATUSCHANGE_MENUCOMMAND; - tbb.lParamUp = 1; - tbb.dwFlags = TTBBF_VISIBLE | TTBBF_SHOWTOOLTIP | TTBBF_ASPUSHBUTTON; - if (!opt.TempDisabled) - tbb.dwFlags |= TTBBF_PUSHED; + tbb.dwFlags = (opt.TempDisabled ? 0 : TTBBF_PUSHED) | TTBBF_ASPUSHBUTTON; tbb.name = LPGEN("Toggle status notification"); tbb.hIconHandleUp = GetIconHandle(ICO_NOTIFICATION_OFF); tbb.hIconHandleDn = GetIconHandle(ICO_NOTIFICATION_ON); -- cgit v1.2.3