Skip to content

Commit

Permalink
[wip] boincmgr: change on button when it pressed
Browse files Browse the repository at this point in the history
  • Loading branch information
winkies committed Nov 17, 2020
1 parent 2759f0f commit b5bc5eb
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion clientgui/ViewWork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ void CViewWork::OnTasksByProject( wxCommandEvent& WXUNUSED(event)) {
// loop on all row to get only selected project
for (row = 0; row < total; row++) {
GetDocProjectName(row, strProjectName);
if (strRef.IsSameAs(strProjectName)) {
if (projectRef.IsSameAs(strProjectName)) {
value++;
}
}
Expand Down Expand Up @@ -915,6 +915,20 @@ void CViewWork::UpdateSelection() {
);
}

if (pDoc->m_TasksByProject) {
m_pTaskPane->UpdateTask(
pGroup->m_Tasks[BTN_FILTER_BY],
_("Show all tasks"),
_("Show all tasks.")
);
} else {
m_pTaskPane->UpdateTask(
pGroup->m_Tasks[BTN_FILTER_BY],
_("Show only this project"),
_("Show tasks from only this project.")
);
}

row = -1;
for (i=0; i<n; i++) {
// Step through all selected items
Expand Down

0 comments on commit b5bc5eb

Please sign in to comment.