Commit bee8a76d authored by Arnaud B.'s avatar Arnaud B.

Fix a bug.

parent e41b892b
Pipeline #139025 passed with stage
in 2 minutes and 21 seconds
...@@ -268,7 +268,7 @@ private class GameWindow : AdaptativeWindow, AdaptativeWidget ...@@ -268,7 +268,7 @@ private class GameWindow : AdaptativeWindow, AdaptativeWidget
} }
else else
{ {
if (game_widget_1 != null) if (game_widget_1 != null && (!) stack.get_visible_child_name () == "game-box")
((!) game_widget_1).show (); ((!) game_widget_1).show ();
string? panel_name = stack.get_visible_child_name (); string? panel_name = stack.get_visible_child_name ();
if (panel_name != null && (!) panel_name == "start-box") if (panel_name != null && (!) panel_name == "start-box")
...@@ -308,8 +308,7 @@ private class GameWindow : AdaptativeWindow, AdaptativeWidget ...@@ -308,8 +308,7 @@ private class GameWindow : AdaptativeWindow, AdaptativeWidget
stack.set_visible_child_name ("game-box"); stack.set_visible_child_name ("game-box");
back_button.hide (); // TODO transition? back_button.hide (); // TODO transition?
if (game_widget_1 != null if (game_widget_1 != null && !is_extra_thin)
&& stack.get_visible_child_name () == "start-box")
((!) game_widget_1).show (); ((!) game_widget_1).show ();
new_game_button.show (); new_game_button.show ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment