summaryrefslogtreecommitdiff
path: root/plugins/TopToolBar/toolbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TopToolBar/toolbar.cpp')
-rw-r--r--plugins/TopToolBar/toolbar.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/plugins/TopToolBar/toolbar.cpp b/plugins/TopToolBar/toolbar.cpp
index d36dca62bf..8e42322e58 100644
--- a/plugins/TopToolBar/toolbar.cpp
+++ b/plugins/TopToolBar/toolbar.cpp
@@ -504,7 +504,7 @@ INT_PTR TTBSetOptions(WPARAM wParam, LPARAM lParam)
b->SetBitmap();
if (retval & TTBBF_VISIBLE) {
ArrangeButtons();
- // save button setting
+ b->SaveSettings(0,0);
}
retval = 1;
@@ -541,17 +541,17 @@ INT_PTR TTBSetOptions(WPARAM wParam, LPARAM lParam)
if (changed)
b->SetBitmap();
- changed = 0;
if (retval & TTBBF_VISIBLE) {
ArrangeButtons();
- changed = 1;
+ b->SaveSettings(0,0);
}
if (b->dwFlags & TTBBF_ISLBUTTON) {
if (b->program != NULL)
free(b->program);
b->program = _tcsdup(lpTTB->program);
- changed = 1; // for launch buttons from user, not options (options don't share handles)
+// don't save program changing in use buttons
+// changed = 1; // for launch buttons from user, not options (options don't share handles)
}
else {
if (b->pszService != NULL)
@@ -559,9 +559,6 @@ INT_PTR TTBSetOptions(WPARAM wParam, LPARAM lParam)
b->pszService = _strdup(lpTTB->pszService);
}
-// if (changed)
-// ;// save button setting
-
b->lParamUp = lpTTB->lParamUp;
b->wParamUp = lpTTB->wParamUp;
b->lParamDown = lpTTB->lParamDown;