fix: New games get "adventure" as genre
Previously the genre was empty if you didn't explicitly select a value in the genre drop down box before saving.
This commit is contained in:
parent
02a12e0df5
commit
5d276fc2b7
|
@ -486,7 +486,8 @@ public class MainViewModel extends AbstractModel
|
|||
updatedGame.setAuthor(infoModel.getAuthor().replace("\"", "\"\""));
|
||||
updatedGame.setYear(infoModel.getYear());
|
||||
updatedGame.setComposer(infoModel.getComposer().replace("\"", "\"\""));
|
||||
updatedGame.setGenre(infoModel.getGenre());
|
||||
//If no genre selected use "adventure".
|
||||
updatedGame.setGenre(infoModel.getGenre().isEmpty() ? "adventure" : infoModel.getGenre());
|
||||
updatedGame.setDescription(infoModel.getDescription().replace("\"", "\"\""));
|
||||
updatedGame.setDescriptionDe(infoModel.getDescriptionDe().replace("\"", "\"\""));
|
||||
updatedGame.setDescriptionFr(infoModel.getDescriptionFr().replace("\"", "\"\""));
|
||||
|
|
Loading…
Reference in New Issue