fix: When saving a new game and favorites view is selected the game is marked as favorite directly
This commit is contained in:
parent
1decf941fe
commit
410b754ace
|
@ -384,6 +384,11 @@ public class MainViewModel extends AbstractModel
|
|||
int rowId = dbConnector.createNewGame(updatedGame);
|
||||
currentGameId = Integer.toString(rowId);
|
||||
selectedData.setGameId(currentGameId);
|
||||
if (getSelectedGameView().getGameViewId() == GameView.FAVORITES_ID)
|
||||
{
|
||||
//Mark as favorites
|
||||
toggleFavorite(selectedData);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue