summaryrefslogtreecommitdiff
path: root/plugins/NewsAggregator/Src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/NewsAggregator/Src')
-rw-r--r--plugins/NewsAggregator/Src/Services.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/plugins/NewsAggregator/Src/Services.cpp b/plugins/NewsAggregator/Src/Services.cpp
index 682badbdda..ff12ebe2a4 100644
--- a/plugins/NewsAggregator/Src/Services.cpp
+++ b/plugins/NewsAggregator/Src/Services.cpp
@@ -287,15 +287,14 @@ INT_PTR EnableDisable(WPARAM wParam, LPARAM lParam)
int OnToolbarLoaded(WPARAM wParam, LPARAM lParam)
{
- TTBButton tbb = {0};
- tbb.cbSize = sizeof(TTBButton);
- tbb.name = LPGEN("Enable/disable auto update");
- tbb.pszService = MS_NEWSAGGREGATOR_ENABLED;
- tbb.pszTooltipUp = LPGEN("Auto Update Enabled");
- tbb.pszTooltipDn = LPGEN("Auto Update Disabled");
- tbb.hIconHandleUp = GetIconHandle("enabled");
- tbb.hIconHandleDn = GetIconHandle("disabled");
- tbb.dwFlags = (db_get_b(NULL, MODULE, "AutoUpdate", 1) ? 0 : TTBBF_PUSHED) | TTBBF_ASPUSHBUTTON | TTBBF_VISIBLE;
- hTBButton = TopToolbar_AddButton(&tbb);
+ TTBButton ttb = { sizeof(ttb) };
+ ttb.name = LPGEN("Enable/disable auto update");
+ ttb.pszService = MS_NEWSAGGREGATOR_ENABLED;
+ ttb.pszTooltipUp = LPGEN("Auto Update Enabled");
+ ttb.pszTooltipDn = LPGEN("Auto Update Disabled");
+ ttb.hIconHandleUp = GetIconHandle("enabled");
+ ttb.hIconHandleDn = GetIconHandle("disabled");
+ ttb.dwFlags = (db_get_b(NULL, MODULE, "AutoUpdate", 1) ? 0 : TTBBF_PUSHED) | TTBBF_ASPUSHBUTTON | TTBBF_VISIBLE;
+ hTBButton = TopToolbar_AddButton(&ttb);
return 0;
} \ No newline at end of file