flabbet 3 роки тому
батько
коміт
73a2a4386a

+ 0 - 9
PixiEditor.UpdateModule/UpdateChannel.cs

@@ -22,14 +22,5 @@ namespace PixiEditor.UpdateModule
             ApiUrl = $"https://api.github.com/repos/{repositoryOwner}/{repositoryName}/releases/latest";
             IncompatibleFileApiUrl = "https://raw.githubusercontent.com/" + $"{repositoryOwner}/{repositoryName}/" + "{0}/incompatible.json";
         }
-
-        public UpdateChannel(string name, string repositoryOwner, string repositoryName, string incompatibleFileApiUrl)
-        {
-            Name = name;
-            RepositoryOwner = repositoryOwner;
-            RepositoryName = repositoryName;
-            IncompatibleFileApiUrl = incompatibleFileApiUrl;
-            ApiUrl = $"https://api.github.com/repos/{repositoryOwner}/{repositoryName}/releases/latest";
-        }
     }
 }

+ 2 - 3
PixiEditor/ViewModels/SubViewModels/Main/UpdateViewModel.cs

@@ -1,4 +1,4 @@
-using System;
+using System;
 using System.ComponentModel;
 using System.Diagnostics;
 using System.IO;
@@ -195,8 +195,7 @@ namespace PixiEditor.ViewModels.SubViewModels.Main
         private void InitUpdateChecker()
         {
             UpdateChannels[0] = new UpdateChannel("Release", "PixiEditor", "PixiEditor");
-            UpdateChannels[1] = new UpdateChannel("Development", "PixiEditor", "PixiEditor-development-channel",
-                "https://raw.githubusercontent.com/PixiEditor/PixiEditor/{0}/incompatible.json");
+            UpdateChannels[1] = new UpdateChannel("Development", "PixiEditor", "PixiEditor-development-channel");
 
             string updateChannel = IPreferences.Current.GetPreference<string>("UpdateChannel");