diff options
| author | Al <gabriel.cortesi@outlook.com> | 2019-01-12 19:58:56 +0100 |
|---|---|---|
| committer | Al <gabriel.cortesi@outlook.com> | 2019-01-12 19:58:56 +0100 |
| commit | 864cab8c8afe9afc2a329d8849d2eee336a6898f (patch) | |
| tree | 5fa8797c3cf79fd8657b45b5b6944d01286f9bd8 /src/modlistsortproxy.cpp | |
| parent | ea3df2e9bdb02f44f17acc2f389fb6280d0dc98b (diff) | |
Fixed "check all for updates" not updating for the newly added mods.
Diffstat (limited to 'src/modlistsortproxy.cpp')
| -rw-r--r-- | src/modlistsortproxy.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/modlistsortproxy.cpp b/src/modlistsortproxy.cpp index 1a00d764..bff26e8d 100644 --- a/src/modlistsortproxy.cpp +++ b/src/modlistsortproxy.cpp @@ -58,11 +58,18 @@ void ModListSortProxy::updateFilterActive() void ModListSortProxy::setCategoryFilter(const std::vector<int> &categories)
{
+ m_CategoryFilter = categories;
+ updateFilterActive();
+ invalidate();
+
+ //For better performance we could refresh only if the filter is different or
+ //categories contains CATEGORY_SPECIAL_UPDATEAVAILABLE
+ /*
if (categories != m_CategoryFilter) {
m_CategoryFilter = categories;
updateFilterActive();
invalidate();
- }
+ }*/
}
void ModListSortProxy::setContentFilter(const std::vector<int> &content)
|
