[libgnome-games-support] scores: Fix Score user property



commit cbf267e4cbc794fd5cd2bb7c005803fe46645dff
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Sun Feb 18 11:23:50 2018 -0600

    scores: Fix Score user property
    
    I noticed that, after changing your name on the high score dialog, the
    score was saved with the original name instead of the new name. After
    way too much debugging, it turned out to be a typo here. It regressed in
    b42a2515acf70dc865908d9ef29c4a1af00e166e.

 games/scores/score.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/games/scores/score.vala b/games/scores/score.vala
index 9dfa269..c36d849 100644
--- a/games/scores/score.vala
+++ b/games/scores/score.vala
@@ -39,7 +39,7 @@ public class Score : Object
     public string user
     {
         get { return _user; }
-        set { _user = (value == null ? Environment.get_real_name () : user); }
+        set { _user = (value == null ? Environment.get_real_name () : value); }
     }
 
     public Score (long score, int64 time = 0, string? user = null)


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