[five-or-more] Only hide the initial tip on cell release



commit 3b9698a2e2a57b8287854df38d5bb7485b8052ed
Author: Robert Roth <robert roth off gmail com>
Date:   Wed Oct 17 22:34:19 2018 +0300

    Only hide the initial tip on cell release

 src/view.vala | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/view.vala b/src/view.vala
index cc97558..aedc0d9 100644
--- a/src/view.vala
+++ b/src/view.vala
@@ -217,10 +217,6 @@ public class View : Gtk.DrawingArea
         if (cell_x >= game.n_cols || cell_y >= game.n_rows)
             return false;
 
-        if (game.status_message != StatusMessage.NONE)
-            game.status_message = StatusMessage.NONE;
-
-
         keyboard_cursor_x = cell_x;
         keyboard_cursor_y = cell_y;
 
@@ -252,6 +248,9 @@ public class View : Gtk.DrawingArea
         /* if selected cell is empty and start is set, and cell is empty, set end */
         else if (game.board.get_piece (cell_y, cell_x) == null && start_x != -1 && start_y != -1)
         {
+            if (game.status_message != StatusMessage.NONE)
+                game.status_message = StatusMessage.NONE;
+
             end_x = cell_x;
             end_y = cell_y;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]