diff --git a/Projects Launcher/App.config b/Projects Launcher/App.config index 6522979..7bc668a 100644 --- a/Projects Launcher/App.config +++ b/Projects Launcher/App.config @@ -79,7 +79,7 @@ play.projects.gg - 0.1.30 + 0.1.31 diff --git a/Projects Launcher/MainWindows/MainWindow.cs b/Projects Launcher/MainWindows/MainWindow.cs index a0ed903..081a736 100644 --- a/Projects Launcher/MainWindows/MainWindow.cs +++ b/Projects Launcher/MainWindows/MainWindow.cs @@ -1,6 +1,7 @@ using CmlLib.Core; using CmlLib.Core.Auth; using DiscordRPC; +using DiscordRPC.Helper; using Microsoft.Win32; using MineStatLib; using Newtonsoft.Json; @@ -598,16 +599,6 @@ private async Task onlineCountUpdater() GC.WaitForPendingFinalizers(); } - public class debug - { - public string ping { get; set; } - } - - public class Xml - { - public debug debug { get; set; } - } - private void ramlabel_Click(object sender, EventArgs e) { maxramlabell = maxramlabel.Text; @@ -1089,9 +1080,7 @@ private void timer1_Tick(object sender, EventArgs e) jsonverisi = r.ReadToEnd(); } - Xml xml = JsonConvert.DeserializeObject(jsonverisi); - - if (xml.debug.ping == "false") + if (jsonverisi == "{\"online\":false}") { lobiOnline.Image = Properties.Resources.De_Aktif; } @@ -1110,7 +1099,7 @@ private void timer1_Tick(object sender, EventArgs e) jsonverisi2 += r.ReadToEnd(); } - if (xml.debug.ping == "false") + if (jsonverisi2 == "{\"online\":false}") { gaiaOnline.Image = Properties.Resources.De_Aktif; } diff --git a/Projects Launcher/Projects Launcher.csproj b/Projects Launcher/Projects Launcher.csproj index 98a36af..d8c59bd 100644 --- a/Projects Launcher/Projects Launcher.csproj +++ b/Projects Launcher/Projects Launcher.csproj @@ -35,7 +35,7 @@ true publish.htm false - 44 + 45 0.1.6.%2a false true @@ -274,7 +274,7 @@ - 3.3.5 + 3.3.6 5.7.0 diff --git a/Projects Launcher/Properties/Settings.Designer.cs b/Projects Launcher/Properties/Settings.Designer.cs index c405efd..bc654ab 100644 --- a/Projects Launcher/Properties/Settings.Designer.cs +++ b/Projects Launcher/Properties/Settings.Designer.cs @@ -130,7 +130,7 @@ public string ProxyIP { [global::System.Configuration.ApplicationScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("0.1.30")] + [global::System.Configuration.DefaultSettingValueAttribute("0.1.31")] public string currentVersion { get { return ((string)(this["currentVersion"])); diff --git a/Projects Launcher/Properties/Settings.settings b/Projects Launcher/Properties/Settings.settings index 86b6ab3..20f5905 100644 --- a/Projects Launcher/Properties/Settings.settings +++ b/Projects Launcher/Properties/Settings.settings @@ -30,7 +30,7 @@ play.projects.gg - 0.1.30 + 0.1.31 False