Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update label when using reverse and selection button and correction for status changes with numeric values #103

Merged
merged 2 commits into from
Jan 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ namespace Renderer
bool v = s.to<bool>() || s == "active" || s == "enabled";
assert(study->parameters.yearsFilter);
study->parameters.yearsFilter[y] = v;
break;
}
case MCPlaylistCol::WEIGHT :
{
Expand All @@ -112,6 +113,7 @@ namespace Renderer
return false;
}
}
break;
}
}

Expand Down
10 changes: 10 additions & 0 deletions src/ui/simulator/windows/options/playlist/playlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@ namespace Options
Freeze();
jmkerloch marked this conversation as resolved.
Show resolved Hide resolved
for (uint i = 0; i != study.parameters.nbYears; ++i)
study.parameters.yearsFilter[i] = true;


onUpdateStatus();

pGrid->forceRefresh();
updateCaption();
Dispatcher::GUI::Refresh(pGrid);
Expand All @@ -225,6 +229,9 @@ namespace Options
Freeze();
for (uint i = 0; i != study.parameters.nbYears; ++i)
study.parameters.yearsFilter[i] = false;

onUpdateStatus();

pGrid->forceRefresh();
updateCaption();
Dispatcher::GUI::Refresh(pGrid);
Expand All @@ -246,6 +253,9 @@ namespace Options
study.parameters.yearsFilter[i] =
!study.parameters.yearsFilter[i];
}

onUpdateStatus();

pGrid->forceRefresh();
updateCaption();
Dispatcher::GUI::Refresh(pGrid);
Expand Down