Skip to content

Commit

Permalink
Fix can't open game log if the game is not running
Browse files Browse the repository at this point in the history
  • Loading branch information
evgfilim1 committed Mar 19, 2024
1 parent a05ac29 commit 8bafc0c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/screens/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,7 @@ class _MainScreenState extends State<MainScreen> {
menuChildren: [
MenuItemButton(
leadingIcon: const Icon(Icons.list, size: Checkbox.width),
onPressed: controller.isGameInitialized
? () => Navigator.pushNamed(context, "/log")
: null,
onPressed: () => Navigator.pushNamed(context, "/log"),
child: const Text("Журнал игры"),
),
MenuItemButton(
Expand Down

0 comments on commit 8bafc0c

Please sign in to comment.