[gnome-mahjongg] Fix pause button after unpausing by clicking on game



commit b02329f09ce1e3b3e7055431a9e29eae7bc9de9d
Author: Elnee <hsoftdima gmail com>
Date:   Thu Jan 3 21:00:40 2019 +0200

    Fix pause button after unpausing by clicking on game
    
    It is possible to unpause the game by clicking in the game area.
    
    When this was done, the pause button still showed the game as paused.
    This is fixed now.

 src/gnome-mahjongg.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gnome-mahjongg.vala b/src/gnome-mahjongg.vala
index 6a72f9a..a125c55 100644
--- a/src/gnome-mahjongg.vala
+++ b/src/gnome-mahjongg.vala
@@ -300,7 +300,7 @@ public class Mahjongg : Gtk.Application
         /* Cancel pause on click */
         if (game_view.game.paused)
         {
-            game_view.game.paused = false;
+            pause_cb ();
             return true;
         }
 


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