summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Lishnevsky <elishnevsky@gmail.com>2012-07-25 17:53:52 +0000
committerEugene Lishnevsky <elishnevsky@gmail.com>2012-07-25 17:53:52 +0000
commitbfed3d975a2908a5d2688f1dc1b55aa4aa6a9bf7 (patch)
tree256fed4c23de3e6d8420b504b5034bcd3283a357
parente5c79f6ca210dce18be291ac1b0a6103d2e90c45 (diff)
Code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@1182 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/NewXstatusNotify/src/main.cpp5
1 files changed, 1 insertions, 4 deletions
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);