Skip to content

Commit

Permalink
fix(AdvancedHint): use hint only when timer is running
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Repin committed Oct 29, 2024
1 parent 37c3908 commit e796a8c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,11 @@ fun GameScreen(
ToolbarItem(
modifier = Modifier.weight(1f),
painter = rememberVectorPainter(Icons.Rounded.AutoAwesome),
onClick = { viewModel.getAdvancedHint() }
onClick = {
if (viewModel.gamePlaying) {
viewModel.getAdvancedHint()
}
}
)
}
}
Expand Down

0 comments on commit e796a8c

Please sign in to comment.