mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-22 14:53:53 -07:00
Fix show-buddies-only filter loading, and add handling for creator name filter storage/loading. (#4105)
This commit is contained in:
parent
14fcb2e5d7
commit
a8b79fd020
3 changed files with 15 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue