Skip to content

Commit

Permalink
Update Library
Browse files Browse the repository at this point in the history
- CmlLib.Core updated to 3.3.6
- Version bump to 0.1.31
  • Loading branch information
rudde0 committed Jan 22, 2023
1 parent 2d7560b commit 8b04fe8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 19 deletions.
2 changes: 1 addition & 1 deletion Projects Launcher/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
<value>play.projects.gg</value>
</setting>
<setting name="currentVersion" serializeAs="String">
<value>0.1.30</value>
<value>0.1.31</value>
</setting>
</Projects_Launcher.Properties.Settings>
</applicationSettings>
Expand Down
17 changes: 3 additions & 14 deletions Projects Launcher/MainWindows/MainWindow.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using CmlLib.Core;
using CmlLib.Core.Auth;
using DiscordRPC;
using DiscordRPC.Helper;
using Microsoft.Win32;
using MineStatLib;
using Newtonsoft.Json;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -1089,9 +1080,7 @@ private void timer1_Tick(object sender, EventArgs e)
jsonverisi = r.ReadToEnd();
}

Xml xml = JsonConvert.DeserializeObject<Xml>(jsonverisi);

if (xml.debug.ping == "false")
if (jsonverisi == "{\"online\":false}")
{
lobiOnline.Image = Properties.Resources.De_Aktif;
}
Expand All @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions Projects Launcher/Projects Launcher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
<WebPage>publish.htm</WebPage>
<OpenBrowserOnPublish>false</OpenBrowserOnPublish>
<ApplicationRevision>44</ApplicationRevision>
<ApplicationRevision>45</ApplicationRevision>
<ApplicationVersion>0.1.6.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<CreateDesktopShortcut>true</CreateDesktopShortcut>
Expand Down Expand Up @@ -274,7 +274,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="CmlLib.Core">
<Version>3.3.5</Version>
<Version>3.3.6</Version>
</PackageReference>
<PackageReference Include="Costura.Fody">
<Version>5.7.0</Version>
Expand Down
2 changes: 1 addition & 1 deletion Projects Launcher/Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Projects Launcher/Properties/Settings.settings
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<Value Profile="(Default)">play.projects.gg</Value>
</Setting>
<Setting Name="currentVersion" Type="System.String" Scope="Application">
<Value Profile="(Default)">0.1.30</Value>
<Value Profile="(Default)">0.1.31</Value>
</Setting>
<Setting Name="backgroundLite" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
Expand Down

0 comments on commit 8b04fe8

Please sign in to comment.