Fix show-buddies-only filter loading, and add handling for creator name filter storage/loading. (#4105)

This commit is contained in:
Kaitlin 2020-09-26 21:55:13 -04:00 committed by GitHub
parent 14fcb2e5d7
commit a8b79fd020
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 0 deletions

View file

@ -70,6 +70,16 @@ QString GameFiltersSettings::getGameNameFilter()
return getValue("game_name_filter", "filter_games").toString();
}
void GameFiltersSettings::setCreatorNameFilter(QString creatorName)
{
setValue(creatorName, "creator_name_filter", "filter_games");
}
QString GameFiltersSettings::getCreatorNameFilter()
{
return getValue("creator_name_filter", "filter_games").toString();
}
void GameFiltersSettings::setMinPlayers(int min)
{
setValue(min, "min_players", "filter_games");

View file

@ -14,6 +14,7 @@ public:
bool isShowPasswordProtectedGames();
bool isHideIgnoredUserGames();
QString getGameNameFilter();
QString getCreatorNameFilter();
int getMinPlayers();
int getMaxPlayers();
bool isGameTypeEnabled(QString gametype);
@ -23,6 +24,7 @@ public:
void setUnavailableGamesVisible(bool enabled);
void setShowPasswordProtectedGames(bool show);
void setGameNameFilter(QString gameName);
void setCreatorNameFilter(QString creatorName);
void setMinPlayers(int min);
void setMaxPlayers(int max);
void setGameTypeEnabled(QString gametype, bool enabled);