Add back in the games description filter storage.
This commit is contained in:
parent
cc75210ac6
commit
d96e566411
1 changed files with 3 additions and 1 deletions
|
@ -297,6 +297,7 @@ void GamesProxyModel::loadFilterParameters(const QMap<int, QString> &allGameType
|
||||||
|
|
||||||
unavailableGamesVisible = settings.value("unavailable_games_visible", false).toBool();
|
unavailableGamesVisible = settings.value("unavailable_games_visible", false).toBool();
|
||||||
passwordProtectedGamesVisible = settings.value("password_protected_games_visible", false).toBool();
|
passwordProtectedGamesVisible = settings.value("password_protected_games_visible", false).toBool();
|
||||||
|
gameNameFilter = settings.value("game_name_filter", "").toString();
|
||||||
maxPlayersFilterMin = settings.value("min_players", 1).toInt();
|
maxPlayersFilterMin = settings.value("min_players", 1).toInt();
|
||||||
maxPlayersFilterMax = settings.value("max_players", DEFAULT_MAX_PLAYERS_MAX).toInt();
|
maxPlayersFilterMax = settings.value("max_players", DEFAULT_MAX_PLAYERS_MAX).toInt();
|
||||||
|
|
||||||
|
@ -321,6 +322,7 @@ void GamesProxyModel::saveFilterParameters(const QMap<int, QString> &allGameType
|
||||||
"password_protected_games_visible",
|
"password_protected_games_visible",
|
||||||
passwordProtectedGamesVisible
|
passwordProtectedGamesVisible
|
||||||
);
|
);
|
||||||
|
settings.setValue("game_name_filter", gameNameFilter);
|
||||||
|
|
||||||
QMapIterator<int, QString> gameTypeIterator(allGameTypes);
|
QMapIterator<int, QString> gameTypeIterator(allGameTypes);
|
||||||
while (gameTypeIterator.hasNext()) {
|
while (gameTypeIterator.hasNext()) {
|
||||||
|
|
Loading…
Reference in a new issue