[iagno] Fix some comments.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [iagno] Fix some comments.
- Date: Sat, 3 Aug 2019 09:05:07 +0000 (UTC)
commit 37f1cf6aa033d46aaea086af9015e1386757d3f2
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Tue Jul 30 16:57:07 2019 +0200
Fix some comments.
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 3db2bc9..c953392 100644
--- a/src/game-window.vala
+++ b/src/game-window.vala
@@ -177,7 +177,6 @@ private class GameWindow : BaseWindow, AdaptativeWidget
// restart_action.set_enabled (false);
undo_action.set_enabled (false);
redo_action.set_enabled (false);
- // hint_action.set_enabled (false);
}
private const GLib.ActionEntry [] ui_action_entries =
@@ -208,15 +207,15 @@ private class GameWindow : BaseWindow, AdaptativeWidget
if (!game_view.game_content_visible_if_true ())
{
if (!back_action_disabled)
- back_cb ();
+ back_cb (); // FIXME not reached if undo_action is disabled, so at game start or finish
return;
}
game_finished = false;
- // hide_notification (); // why? bad behaviour when showing the final board, for no reason?
game_view.show_game_content (/* grab focus */ true);
// redo_action.set_enabled (true);
+
undo ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]