[four-in-a-row] Fix a bug.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [four-in-a-row] Fix a bug.
- Date: Sat, 21 Dec 2019 20:37:44 +0000 (UTC)
commit bee8a76d2a3c8ccaf8af806a2a0a632ecfde11ee
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Sat Dec 21 21:37:31 2019 +0100
Fix a bug.
src/game-window.vala | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/game-window.vala b/src/game-window.vala
index 7014f16..65b9686 100644
--- a/src/game-window.vala
+++ b/src/game-window.vala
@@ -268,7 +268,7 @@ private class GameWindow : AdaptativeWindow, AdaptativeWidget
}
else
{
- if (game_widget_1 != null)
+ if (game_widget_1 != null && (!) stack.get_visible_child_name () == "game-box")
((!) game_widget_1).show ();
string? panel_name = stack.get_visible_child_name ();
if (panel_name != null && (!) panel_name == "start-box")
@@ -308,8 +308,7 @@ private class GameWindow : AdaptativeWindow, AdaptativeWidget
stack.set_visible_child_name ("game-box");
back_button.hide (); // TODO transition?
- if (game_widget_1 != null
- && stack.get_visible_child_name () == "start-box")
+ if (game_widget_1 != null && !is_extra_thin)
((!) game_widget_1).show ();
new_game_button.show ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]