Bläddra i källkod

New idiot bugfixes

Kenneth van Ewijk 10 år sedan
förälder
incheckning
7155b37867
3 ändrade filer med 4 tillägg och 2 borttagningar
  1. 1 1
      YJMPD-UWP/Model/ApiHandler.cs
  2. 1 0
      YJMPD-UWP/Model/GameHandler.cs
  3. 2 1
      YJMPD-UWP/ViewModels/MatchVM.cs

+ 1 - 1
YJMPD-UWP/Model/ApiHandler.cs

@@ -151,7 +151,7 @@ namespace YJMPD_UWP.Model
             JObject obj = JObject.FromObject(new
             {
                 command = Command.PictureUrl.ToString(),
-                pictureurl = url,
+                PictureUrl = url,
                 lon = App.Geo.Position.Coordinate.Point.Position.Longitude,
                 lat = App.Geo.Position.Coordinate.Point.Position.Latitude
             });

+ 1 - 0
YJMPD-UWP/Model/GameHandler.cs

@@ -72,6 +72,7 @@ namespace YJMPD_UWP.Model
         {
             Players = new List<Player>();
             Status = GameStatus.STOPPED;
+            Selected = false;
             App.Photo.OnStatusUpdate += Photo_OnStatusUpdate;
             GeofenceMonitor.Current.GeofenceStateChanged += Current_GeofenceStateChanged;
         }

+ 2 - 1
YJMPD-UWP/ViewModels/MatchVM.cs

@@ -7,7 +7,8 @@ namespace YJMPD_UWP.ViewModels
     {
         public MatchVM() : base("Match")
         {
-
+            Error = "";
+            Message = "";
             App.Game.OnDestinationEnter += Game_OnDestinationEnter;
             App.Game.OnDestinationLeave += Game_OnDestinationLeave;
         }